Get Inventory
getInventoryRetrieve the full inventory for a Minecraft entity UUID or player name, including hotbar and backpack slots plus used-slot counts, to inspect carried items and empty slots.
Instructions
Get the full inventory of an entity or player: the 9 hotbar slots and the 27 backpack slots, plus used-slot counts. Empty slots are null. The target is an entity UUID or a player 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": {
"target": "<target>"
},
"name": "getInventory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Entity UUID or player name (player names are case-insensitive) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity | Yes | ||
| hotbar | Yes | ||
| inventory | Yes | ||
| usedSlots | Yes | ||
| hotbarUsed | Yes | ||
| totalSlots | Yes | ||
| inventoryUsed | Yes |