Skip to content

debug_hot_swap

MCP tools › Debugger

Hot swap (Reload Changed Classes, SPEC-0091 v12): builds the changed workspace sources files for a Java debug session (java-debug in jdtls) and reloads the changed classes into the running program; returns their names. Refused for adapters that cannot reload code (debugpy, lldb-dap, js-debug). Logged in .ferris-idea/agent-log.jsonl. Needs the debug right.

Capabilitydebug.debug_hot_swap
AreaDebugger
Accesschanges ide, processes
Reachesprocess
Rightsdebug
Dry runnone

Arguments

ArgumentTypeDescription
sessionrequiredintegerSession id.minimum 0
filesrequiredarray of stringWorkspace-relative sources that changed.
wait_secondsintegerSeconds the build may take (default 60, at most 300).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.

Terminal window
ferris-idea call ~/my-project debug_hot_swap '{"session":1,"files":[]}'
Input schema as JSON
{
"type": "object",
"required": [
"session",
"files"
],
"properties": {
"session": {
"description": "Session id.",
"type": "integer",
"minimum": 0
},
"files": {
"description": "Workspace-relative sources that changed.",
"type": "array",
"items": {
"type": "string"
}
},
"wait_seconds": {
"description": "Seconds the build may take (default 60, at most 300).",
"type": [
"integer",
"null"
],
"minimum": 0
}
}
}