debug_inspect
MCP tools › Debugger
Inspect a value of a stopped debug session: the expression's value with its type, reference and first level of children, optionally in a view (hex, binary, char, decimal of an integer; text, elements, entries evaluated as Java String.valueOf/toArray()/entrySet().toArray() or Python str/list), or with referring the objects that refer to it (Python's gc; refused by java-debug, which offers no such request). The expression is evaluated in the program and can call functions and change it, like debug_evaluate; each one is logged in .ferris-idea/agent-log.jsonl. 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_inspect |
|---|---|
| Area | Debugger |
| Access | changes ide, processes |
| Reaches | — |
| Rights | debug |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
sessionrequired | integer | Session id.minimum 0 |
expressionrequired | string | Expression whose value is inspected. |
frame | integer | Frame id (default the top frame of the thread that stopped last). |
referring | boolean | The objects that refer to the value instead (Python). |
view | string | Show the value as auto, decimal, hex, binary, char, text, elements or
entries. |
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_inspect '{"session":1,"expression":"<string>"}'Input schema as JSON
{ "type": "object", "required": [ "session", "expression" ], "properties": { "session": { "description": "Session id.", "type": "integer", "minimum": 0 }, "expression": { "description": "Expression whose value is inspected.", "type": "string" }, "frame": { "description": "Frame id (default the top frame of the thread that stopped last).", "type": [ "integer", "null" ] }, "referring": { "description": "The objects that refer to the value instead (Python).", "type": [ "boolean", "null" ] }, "view": { "description": "Show the value as `auto`, `decimal`, `hex`, `binary`, `char`, `text`, `elements` or\n`entries`.", "type": [ "string", "null" ] } }}