Get inventory
get_inventoryRetrieve a Minecraft online player's non-empty inventory slots, including item, amount, and enchantments, with optional filtering by specific slot numbers.
Instructions
List the non-empty inventory slots of an online player, with item, amount and enchantments. Slots: 0-8 hotbar, 9-35 main, 36 boots, 37 leggings, 38 chestplate, 39 helmet, 40 off-hand.
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": {
"username": "<username>"
},
"name": "get_inventory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slots | No | Slots to read; default: all 41 slots. | |
| username | Yes | Exact, case-sensitive name of an online player. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||