query_topology
Matches a natural-language query to indexed file paths and returns import/dependency topology context, helping AI agents locate relevant code and understand project structure.
Instructions
Takes a natural language query and returns matched file paths from the query index, along with import/dependency topology context.
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": "query_topology"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of file paths to return. | |
| query | Yes | Natural-language query. | |
| projectRoot | No | Optional project root. Defaults to PROJECT_ROOT or current working directory. |