decomp_search
Search a patch's decompiled Diablo II binaries for string literals, constants, or function names, optionally within one binary, to locate matching addresses and lines.
Instructions
Search one patch's decompiled binaries for a string literal (e.g. 'Data\Global\Monsters'), a constant (decimal or 0x hex; both spellings match) or a function name (e.g. 'FUN_6fc31020', 'Ordinal_10079'). version: '1.00' to '1.14d' (the error lists them). binary optionally limits it to one, e.g. 'D2Game.dll', 'D2Client', 'Game.exe'. Returns up to 30 hits as binary, function name, address and the matching line; read one with decomp_function. 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>",
"query": "<query>"
},
"name": "decomp_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| binary | No | ||
| version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |