debug_write_memory
Write hex bytes or an ASCII string to a specific address in the debugged process during a live debugging session.
Instructions
Write memory in the debugged process at a specific address using hex bytes or a string.
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>",
"address": "<address>"
},
"name": "debug_write_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | String data to write (used when as_string is true) | |
| address | Yes | Hex address to write to (e.g. "0x08048000") | |
| as_string | No | If true, write data as an ASCII string; otherwise write hex_bytes | |
| hex_bytes | No | Hex bytes to write (e.g. "90909090" for NOPs) | |
| session_id | Yes | Debug session ID |