debug_threads
MCP tools › Debugger
The threads of a stopped debug session: id, name, state (Java: RUNNING, WAIT, MONITOR, NEW, ZOMBIE, read from the JVM; empty where the adapter cannot tell, e.g. Python), thread group and whether it is suspended, with up to frames frames of each suspended thread (a thread dump). Needs the debug right.
Its results carry text from process, files: the client is told to treat that as data, never as instructions.
| Capability | debug.debug_threads |
|---|---|
| Area | Debugger |
| Access | changes processes |
| Reaches | — |
| Rights | debug |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
sessionrequired | integer | Session id.minimum 0 |
frames | integer | Frames per suspended thread (default 20, 0 for none).minimum 0 |
Call it from a shell
ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.
ferris-idea call ~/my-project debug_threads '{"session":1}'Input schema as JSON
{ "type": "object", "required": [ "session" ], "properties": { "session": { "description": "Session id.", "type": "integer", "minimum": 0 }, "frames": { "description": "Frames per suspended thread (default 20, 0 for none).", "type": [ "integer", "null" ], "minimum": 0 } }}