diff_before_after
Apply a rename, type, or comment action to a function and compare decompilation before and after to verify readability improvements. Returns side-by-side diff with action and change detection.
Instructions
Apply a rename/type/comment action and return the before/after decompilation side by side. Actions: 'rename_func' ({name}), 'set_type' ({type}), 'set_comment' ({comment}). Useful to verify a rename or type change actually improved readability. Returns {before, after, action_applied, changes_detected}.
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": {
"addr": "<addr>",
"action": "<action>",
"action_args": "<action_args>",
"instance_id": "<instance_id>"
},
"name": "diff_before_after"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| addr | Yes | Function address | |
| action | Yes | Action: 'rename_func', 'set_type', 'set_comment' | |
| action_args | Yes | Arguments for the action | |
| instance_id | Yes | Target IDA instance ID (required) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| before | No | ||
| after | No | ||
| action_applied | No | ||
| changes_detected | No | ||
| error | No |