ref_query
Query a local reference repository to find architecture patterns, code examples, or design conventions. Use it to gain context from a sibling project while working on the current workspace.
Instructions
Query a reference repository on the same machine for architecture insights, design patterns, conventions, or code examples. Useful for borrowing context from a well-structured sibling repo when working on the current workspace.
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": {
"repoPath": "<repoPath>"
},
"name": "ref_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repoPath | Yes | Absolute path to the reference repository on this machine | |
| query | No | What to look for — architecture patterns, conventions, a specific concept, or a code example | |
| mode | No | auto = infer from query; docs/architecture = markdown only; code/patterns = source files only; structure = dir tree only; all = everything | auto |
| symbol | No | Specific symbol name (function/class/interface) to locate in the reference repo | |
| limit | No | Max results to return | |
| profile | No | Response profile | compact |