hybrid_retrieve
Ranks repository symbols, documentation, package scripts, and Git history to return source-backed context for a query; defaults to deterministic fusion and can add embeddings when enabled.
Instructions
Ranks source symbols plus structural, documentation, package-script, and Git-commit evidence without embeddings by default. Returned evidence is source-backed context, not a verified answer.
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": {
"repository_root": "<repository_root>",
"query": "<query>"
},
"name": "hybrid_retrieve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | basic (default) fuses deterministic rankings; lexical is symbol-only; hybrid also uses embeddings when enabled. | |
| limit | No | Maximum candidates; defaults to 10. | |
| model | No | Local Ollama embedding model for enabled hybrid mode. | |
| query | Yes | Question, identifier, path, or behavior to retrieve. | |
| repository_root | Yes | Absolute path to the Git repository root to explore. |