search_docs
Search all documents full-text to find relevant passages by keyword, ranked by BM25 with doc_id, section and snippet. Use specific terms like product names or error codes, then read full sections.
Instructions
Full-text search across all documents. Returns the most relevant passages ranked by BM25, each with a doc_id, section and snippet. Specific terms work best (product names, error codes, policy names). Follow up with get_document to read the full section before answering.
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_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Keywords or a short question, e.g. 'rotate API keys' | |
| top_k | No | Maximum results to return | |
| path_prefix | No | Restrict search to a sub-folder, e.g. 'runbooks/' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | Yes | Guidance for the next step | |
| query | Yes | ||
| results | Yes |