query_graph
Combines dependency and reverse-dependency sets in one query-language expression, returning the modules, files, or count that match.
Instructions
Evaluates one expression of the query language over the graph and returns the modules, the files or the count it selects. Use it only to combine sets, which no other tool does: the modules that A uses within two hops and that use B directly are (files (intersect (deps "A" 2) (rdeps "B" 1))), where each number is how many hops to follow. For one plain question use list_dependencies (what a module uses, who uses it), find_definitions (a name), trace_calls (callers), analyze_impact (the reach of a change) or search_source (a text). expression is one expression; (help) returns the functions of the language with examples. A selection that holds nothing returns an empty result, not an error; a malformed expression (parentheses that do not match, an unknown function) returns one error line that says what is wrong. A long list stops at 200 items unless all is true.
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": {
"expression": "<expression>"
},
"name": "query_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | List everything instead of stopping at 200 items. | |
| expression | Yes | A Scheme expression; (help) lists the functions. |