DEVONthink CLI is cool. However, I would suggest to output the specific results within the document, instead of the document only. For example, I used dt search "nationalism", its output is like:
Results:
- Item 1
Id: 2206588
Uuid: 03CF4017-1689-4112-9213-E96C1EA37FD0
Name: Nakai - 2025 - Nationalism and Environmentalism from the Global Perspective
Path: /Users/username/Library/...
Location: /Research/Nationalism/...
Record Type: PDF document
Kind: PDF+Text
Creation Date: Fri May 10 2024 20:19:27 GMT-0400 (Eastern Daylight Time)
Modification Date: Sun Feb 16 2025 06:37:46 GMT-0500 (Eastern Standard Time)
Size: 973893
Score: 1
Tags:
(empty)
If the output contains the matched paragraph within the documents, it would more similar to DEVONthink GUI’s search behaviors, and the search results would be much more helpful for AI Agents. Thanks for your consideration.