Trace call paths
traceFind the shortest call path between two symbols or files, with each hop cited by file:line, or map callers and callees from a single starting point.
Instructions
With from and to: the shortest call path between two symbols or files, each hop cited file:line (falls back to the file dependency path). With only from: the call tree below it (direction callees) or above it (direction callers).
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": {
"from": "<from>"
},
"name": "trace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| from | Yes | ||
| root | No | Repository root. Defaults to the client's workspace root or the server's working directory. | |
| depth | No | Tree depth (default 3). | |
| format | No | text (default, compact, file:line cited) or json. | |
| direction | No |