disassemble
Disassemble code at specified locations (function, address, or range) to inspect assembly instructions, optionally with source code interleaving for easier debugging.
Instructions
Disassemble code (GDB 'disassemble').
location: function name, *address, or "start,end" address range. Omit to disassemble the current function. with_source: if True, interleave C source lines with assembly (/s flag).
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": {
"session_id": "<session_id>"
},
"name": "disassemble"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| location | No | ||
| session_id | Yes | ||
| with_source | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |