ida_run_script
Execute raw IDAPython code inside IDA Pro to cover any operation not supported by other debugging and analysis tools.
Instructions
Execute raw IDAPython code inside IDA Pro. Escape hatch for any operation not covered by other tools.
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": {
"code": "<code>"
},
"name": "ida_run_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | IDAPython code to execute. Use print() to get output. Import idc, idaapi, idautils as needed. |