disassemble_function
Disassemble or pseudo-decompile a single function by name or 0x address using radare2 to inspect binary logic before analysis.
Instructions
Disassemble (pdf) and/or pseudo-decompile (pdc) one function by name or 0x address using radare2.
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": {
"path": "<path>",
"target": "<target>"
},
"name": "disassemble_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | decompile | |
| path | Yes | ||
| target | Yes | Function name (e.g. main, sym.check) or 0x address | |
| max_lines | No |