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.
| Capability | debug.debug_hot_swap |
|---|---|
| Area | Debugger |
| Access | changes ide, processes |
| Reaches | process |
| Rights | debug |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
sessionrequired | integer | Session id.minimum 0 |
filesrequired | array of string | Workspace-relative sources that changed. |
wait_seconds | integer | Seconds 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.
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 } }}