debug_set_register
Sets a register value in an active debug session to alter CPU state and control execution flow. Provide the session ID, register name, and hex value to apply the change.
Instructions
Set a register value in the debugged process.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"register_name": "<register_name>",
"value": "<value>"
},
"name": "debug_set_register"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Value to set (hex string, e.g. "0x41414141") | |
| session_id | Yes | Debug session ID | |
| register_name | Yes | Register name (e.g. "rax", "eip", "rflags") |