query_graph
Retrieve function-level call graphs to identify callers, callees, tests, and dependents for any symbol, or list all functions in a file.
Instructions
Query the function-level call graph. Find callers, callees, tests, or dependents for a specific symbol. Use query_type='symbols' to list all functions in a file.
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": {
"file_path": "<file_path>"
},
"name": "query_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | No | Function or class name to query | |
| file_path | Yes | Relative file path | |
| query_type | No | callers | callees | tests | dependents | symbols | callees |