read_d2r_json
Reads Diablo II: Resurrected JSON files by key to inspect UI layouts, item maps, missiles, monsters, or strings; omit the key to outline a file's widgets or keys.
Instructions
Read a Diablo II: Resurrected JSON file by key: a UI layout (e.g. 'hireablespanelhd.json', 'bankexpansionlayouthd.json', 'controller/characterstatspanelhd.json'), the HD item art map ('items.json': item code to data/hd/items asset; 'uniques.json', 'sets.json'), 'missiles.json', 'monsters.json' or a strings file ('item-names.json'). Without key it outlines the file: a layout's widget tree (type and name of each widget, children indented), or a list's keys. key: a widget name in a layout ('HireablesPanel', 'Template'), an item code ('hax'), a strings Key, or a dotted path ('fields.rect'). source: 'd2r-vanilla' (the default: unmodded files from D2R 2.4/2.5, before Reign of the Warlock), or 'd2r-howto' or 'd2rmm-mods' for a mod's own JSON (modified copies, so say so). These are D2R only; Legacy has no JSON. Find files with search_code first.
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": {
"file": "<file>"
},
"name": "read_d2r_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| file | Yes | ||
| source | No | d2r-vanilla |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |