Search documents
search_documentsSearch your own computer files by exact words or prefixes in names and content, ranked by relevance. Use it first for document questions, then narrow by file type, folder, or modification date.
Instructions
Full-text search over the user's own files on this computer. Finds exact words and word prefixes in file names and content, ranked by relevance. USE THIS FIRST for any question about the user's documents: it is fast. Read-only. Covers only the folders indexed by RootMind that this connection may access, as of the last indexing run (files changed since may be missing). Pass the words to find as query; narrow with file_type, folder or modified_after/modified_before when the question names one. Returns up to limit hits, each with file name, ID, folder, type, modification date, location (page/slide/sheet) when known, a snippet and a suggested read_document window. There is no paging: for more hits raise limit or narrow the filters. With no match it says so; then search again with other words, or use search_fuzzy.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results (1-50, default 10). | |
| query | Yes | Search term(s). Matches exact words and prefixes (e.g. 'invoice' also finds 'invoices'). | |
| folder | No | Optional: only documents in this indexed folder, by its name, case-insensitive (e.g. 'Unterlagen'; get_statistics lists the folders). | |
| file_type | No | Optional: only this file type, as the lowercase extension without a dot (pdf, docx, xlsx, pptx, md, txt, csv, ...). | |
| modified_after | No | Optional: only documents modified on or after this date (YYYY-MM-DD). | |
| modified_before | No | Optional: only documents modified on or before this date (YYYY-MM-DD). |