search_documents
Semantic search over indexed notes and files. Meters 1 rag_query. Returns hits plus budget and keyBudget. source=documents searches the whole index or one namespace and checks ACL rag_search (former rag_search). source=memory limits the search to prefs, facts, or run and checks ACL memory_search (former memory_search). That response also includes scope and namespace. Read only: no writes and no email. Use index_document to add text first. Use manage_memory action=get to read an exact key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topK | No | Maximum hits. Default 5, maximum 20. | |
| query | No | Natural-language query. Required for both sources. | |
| scope | No | Limit source=memory to this scope. Omit to search without a scope filter. Ignored when source=documents. | |
| source | Yes | documents checks ACL rag_search and accepts namespace. memory checks ACL memory_search and accepts scope. Required. No default. | |
| namespace | No | Limit source=documents to this namespace. Omit to search every namespace the key may access. Ignored when source=memory. |