Skip to content

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.

Capabilitydebug.debug_inspect
AreaDebugger
Accesschanges ide, processes
Reaches—
Rightsdebug
Dry runnone

Arguments

ArgumentTypeDescription
sessionrequiredintegerSession id.minimum 0
expressionrequiredstringExpression whose value is inspected.
frameintegerFrame id (default the top frame of the thread that stopped last).
referringbooleanThe objects that refer to the value instead (Python).
viewstringShow 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.

Terminal window
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"
]
}
}
}