Before/after decompile of one edit
diff_before_afterApply a rename, type, or comment change and view before/after decompilation side by side to verify the edit actually improved readability.
Instructions
Rename a function, set its type, or add a comment, and immediately see the before/after decompilation side by side. Use this instead of calling rename then decompile separately when you want to verify that a rename or type change actually improved readability. Actions: 'rename_func' (action_args: {name: str}), 'set_type' (action_args: {type: str}), 'set_comment' (action_args: {comment: str}). Returns {before, after, action_applied, changes_detected}. Especially useful during batch renaming to confirm each change had the intended effect.
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 | No | Optional database instance id. If omitted, use the current target. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ||
| error | No | ||
| before | No | ||
| action_applied | No | ||
| changes_detected | No |