trace_path
Map callers, callees, data flow, or cross-service paths in a codebase to understand dependencies, with configurable depth, direction, and pagination.
Instructions
Trace callers/callees, data flow, or cross-service paths. Defaults exclude tests and resolver evidence. Rows keep qn/hop with explicit totals, relations, and continuations.
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": {
"function_name": "<function_name>",
"project": "<project>"
},
"name": "trace_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | calls; argument-aware data_flow; service edges; topology: infra objects, routes, controllers (from a Resource/Route); deploy: what CI jobs and scripts run and deploy; run: what a Service runs (image, Dockerfile, program, env). | calls |
| depth | No | ||
| limit | No | Rows/page; gte flags the 5000-node engine ceiling. | |
| cursor | No | Pass next/next_cursor with traversal args unchanged; budget may increase. | |
| format | No | tree chooses smaller complete direct/grouped output; json uses stable grouped tables. | tree |
| project | Yes | ||
| direction | No | both | |
| edge_types | No | ||
| risk_labels | No | Add hop-risk labels. | |
| function_name | Yes | ||
| include_tests | No | ||
| parameter_name | No | data_flow parameter filter. | |
| include_evidence | No | Add resolver class and confidence. | |
| max_output_tokens | No | Sizing hint; hard ceiling is 4 UTF-8 bytes/token. Evidence/args yield before nearest graph rows. |