decomp_function
Retrieve a function's decompiled C from a specific patch binary by name or address to inspect what it does, with version-tagged Ghidra output citing version, binary, and address.
Instructions
One function's decompiled C from a patch's binary, by name (e.g. 'FUN_6fce44f0') or address ('6fce44f0' or '0x6fce44f0'; an address inside a function gives the function containing it). version and binary as for decomp_search. Up to 250 lines; says when it's truncated. This is Ghidra's decompiled output of Blizzard's own binaries (every DLL and EXE of each patch), not source code: function names are Ghidra's (FUN_, Ordinal_, thunk_...) or ours, variables are Ghidra's, and strings appear as labels like s_Data_Global_Monsters__6fb75f54 (the string's first 32 characters, punctuation as _; labelled in 1.00 to 1.10 and partly 1.14d, but hardly at all in 1.11 to 1.13d). Reading it is code reading, not testing: say what the code appears to do, not that you ran it. Cite version, binary and address (e.g. 1.09d D2Game.dll FUN_6fce44f0 @6fce44f0). In public replies quote only short snippets (a few lines), never whole functions. 1.14b and 1.14d have every DLL merged into Game.exe. For clean names use D2MOO (1.10f) or Redivivus (1.14d) first; these dumps are for other patches and for checking what a given patch's binary really does.
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": {
"version": "<version>",
"binary": "<binary>",
"function_or_address": "<function_or_address>"
},
"name": "decomp_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| binary | Yes | ||
| version | Yes | ||
| function_or_address | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |