get_thread_stacks
Retrieves call stacks for a process's busiest or specified threads, showing module!function names to reveal where it spends time or is stuck. Briefly suspends threads after a risk confirmation.
Instructions
Call stacks of a process' threads (one thread, or its busiest ones), with module!function names where they can be read: where it spends its time or is stuck. OPENS THE PROCESS and SUSPENDS each thread for a few milliseconds: the first call is refused with the risks; call again with force=true only if the user agreed.
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": {
"pid": "<pid>"
},
"name": "get_thread_stacks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | The process ID. | |
| tid | No | One thread; left out, its busiest threads. | |
| force | No | True only after the user agreed to the risk this tool described. | |
| threads | No | How many of the busiest threads (default 5, at most 20). |