write_memory
Write hex-encoded byte sequences to a debuggee's virtual memory at a specified address, enabling runtime code patching or data modification during reverse engineering sessions.
Instructions
Write bytes to the debuggee's virtual memory. Use with caution — writing to wrong addresses can crash the debuggee.
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": {
"sessionId": "<sessionId>",
"address": "<address>",
"hexBytes": "<hexBytes>"
},
"name": "write_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session ID | |
| address | Yes | Target address (hex) | |
| hexBytes | Yes | Hex string of bytes to write, e.g. '90 90 90' for three NOPs |