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.
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). |