search_documents
Finds exact terms or identifiers across Markdown sections using keyword search with substring fallback. Scope results by folder or document, then read matching nodes for citable answers.
Instructions
Keyword (BM25) search over section titles, summaries and text, with a substring fallback; handles mixed Chinese/English text and identifiers such as "C++" or "ISO-27001". Returns matching nodes (doc_path, node_id, title_path, line range, snippet). Escalation path: use it when browsing folders and reading structures has not located the answer, or to find an exact term; scope it with folder or doc_path. Then read the hits with get_node_content().
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 matching nodes to return (1-50, default 10). | |
| query | Yes | Keywords to look for: distinctive terms, names or identifiers as they appear in the text (e.g. "ISO-27001 audit", "离职 补偿"). Not a natural-language question. | |
| folder | No | Restrict the search to documents under this folder. Library-relative folder path, copied verbatim from a `folders` entry of a browse_documents() response ("" = library root). Never construct one. | |
| doc_path | No | Restrict the search to this document (takes precedence over `folder`). Copy it verbatim from a browse_documents() or search_documents() result. |