mc_get_item_texture
Render an item from a player inventory slot as a PNG image, including damage and CustomModelData overrides for accurate resource-pack display.
Instructions
Render the item in the player's inventory slot N as a PNG you can see directly. Honors damage / CustomModelData resource-pack overrides on 1.21.11; falls back to the baked sprite on 1.19. Returns the rendered PNG plus a one-line text caption with dimensions + sprite name.
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": {
"slot": "<slot>"
},
"name": "mc_get_item_texture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | Yes | Inventory slot index (0-35 main inv, 36-39 armor, 40 offhand). |