trace_module_deps
Trace module-level dependencies in a codebase to show which files depend on which. Supports import and imported-by directions.
Instructions
Trace module-level dependencies (coarser but always available). Shows which files/modules depend on which.
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": {
"codebase": "<codebase>",
"file_path": "<file_path>"
},
"name": "trace_module_deps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| codebase | Yes | Codebase name (the name you used when calling index_codebase) | |
| file_path | Yes | File path relative to codebase root | |
| direction | No | Direction of trace | both |
| max_depth | No | Maximum traversal depth (default: 5, max: 20) |