sprite_info
Inspect Legacy Diablo II DC6, DCC, and COF sprite files to read directions, frames, dimensions, offsets, bounds, triggers, and warnings, and validate frame counts against a COF.
Instructions
Describe a Legacy Diablo II sprite file on this machine: a DC6 (interface and item art), a DCC (character, monster, missile and object animations) or a COF (an animation's layers). Not Resurrected's .sprite files. For DC6 and DCC: directions, frames per direction, each frame's width x height and offsets, each direction's box and the bounds of the whole sprite, plus warnings: DC6 frames wider or taller than 256 px (the game's sprite cache refuses them), unusual termination bytes, damaged data, and frame counts that disagree with a COF. For a COF: directions, frames, speed, bounding box, the layers (component, weapon class, shadow, transparency and draw effect), the frame triggers (attack, missile, sound, skill) and the back-to-front draw order per direction. path: the file; its type is taken from the extension, or the first bytes. cof: optionally the path of the COF this DC6/DCC is a layer of, to check directions and frame counts. direction: list every frame of this one direction (sprites with many frames are otherwise summarised). Reads the file only; it works without Pillow.
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": {
"path": "<path>"
},
"name": "sprite_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cof | No | ||
| path | Yes | ||
| direction | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |