codebase_graph_query
Query a file's dependencies and dependents in the code graph to understand import relationships and impact.
Instructions
Query the code dependency graph for a specific file. Returns what the file imports and what files depend on it.
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": {
"filePath": "<filePath>"
},
"name": "codebase_graph_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Relative path of the file to query (e.g. 'src/index.ts'). | |
| projectPath | No | Absolute path to the project directory. |