Decompile Subgraph
decompile_subgraphTraverse a bounded call-graph from a root procedure via BFS or DFS and batch-decompile visited procedures, returning pseudocode, assembly, callers, callees, strings, and struct offsets in one call.
Instructions
Traverse the bounded call-graph subgraph from a root procedure (BFS or DFS) and return decompiled pseudocode, assembly instructions, callers, callees, referenced string constants, and inferred base+displacement struct offsets for every visited procedure in a single batch call. Eliminates N+1 round-trip decompilation overhead; preserves cycle edges explicitly without executing the target.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document": null,
"max_depth": 2,
"max_nodes": 25,
"procedure": "main",
"traversal": "bfs",
"include_assembly": true
},
"name": "decompile_subgraph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entry | No | Alias for procedure: root procedure symbol name or 0x-prefixed hexadecimal entry address. | |
| document | No | Optional document name for multi-document providers; defaults to null for the active binary target. | |
| max_depth | No | Maximum call-graph traversal depth from the root procedure (0..10, default 2). | |
| max_nodes | No | Maximum number of unique procedures to decompile in the subgraph (1..100, default 25). | |
| procedure | No | Root procedure selector: exact symbol name or 0x-prefixed hexadecimal entry address. | |
| traversal | No | Call-graph traversal order: breadth-first ('bfs', default) or depth-first ('dfs'). | |
| include_assembly | No | Whether to include disassembled instruction lines for each node in the subgraph (default true). |