Set inventory slot
set_inventory_slotPlaces an item stack into a specific Minecraft inventory slot, replacing existing contents; use 'air' to empty a slot.
Instructions
Put an item stack into one inventory slot, replacing whatever was there.
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>",
"slot": "<slot>",
"item": "<item>"
},
"name": "set_inventory_slot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | Item id; use 'air' to empty the slot. | |
| slot | Yes | Inventory slot: 0-8 hotbar, 9-35 main, 36 boots, 37 leggings, 38 chestplate, 39 helmet, 40 off-hand. | |
| amount | No | Stack size. | |
| username | Yes | Exact, case-sensitive name of an online player. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||