path
Find the shortest call chains between two Java symbols, including the lines of each call, to trace how one method reaches another.
Instructions
Shortest call chains from one symbol to another, with the lines of each call.
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": {
"source": "<source>",
"target": "<target>"
},
"name": "path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max paths | |
| source | Yes | Where the chain starts (a caller) | |
| target | Yes | Where it ends (the callee) | |
| max_depth | No | ||
| project_root | No | Checkout or worktree to query (any directory in it); default: where the server started |