decompile
Turn one function at a given address into pseudo-C with local/arg labels, asm markers, and warnings for focused binary analysis.
Instructions
Decompile one function to pseudo-C. Locals are local_N/arg_N (local_N is N hex bytes below the frame base: on x86 one word below the entry sp, so rbp-N where the prologue pushes rbp and sets it there; on arm the entry sp; higher N, lower address; local_mN is N bytes above the frame base); /* asm */ marks unmodeled code. Line 2 says what was checked, // warn: what is wrong. Not for a first look (use function_summary).
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": {
"address": "<address>"
},
"name": "decompile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Return at most this many lines (default 300; more than the text has for all). | |
| detail | No | `skeleton` for flow and calls only; `full` or absent for all of it. | |
| filter | No | Keep only lines containing this text, case-insensitively. | |
| offset | No | Skip this many lines of the answer. | |
| address | Yes | Function entry or any address inside it. |