Drill into the call tree
get_call_treeGet a pruned call tree from a Spark profile, filtering frames below a threshold and limiting depth. Focus on specific paths with rootPath to diagnose thread CPU usage.
Instructions
Pruned call tree for a thread. Children below minPercent of the thread total are dropped and depth is capped. Pass rootPath (an array of 'Class.method' labels/substrings) to descend into a specific subtree before expanding.
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": {
"profileId": "<profileId>"
},
"name": "get_call_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread | No | Thread name (default 'Server thread'). | |
| maxDepth | No | ||
| rootPath | No | Descend into this frame path first, e.g. ['runServer','tickChildren']. | |
| profileId | Yes | The id returned by load_profile. | |
| minPercent | No | Drop frames below this % of thread total. |