Clear inventory
clear_inventoryRemoves items from an online Minecraft player's inventory, either all items or one item type, and can limit how many items are removed.
Instructions
Remove items from an online player's inventory (all items, or only one item type).
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": "clear_inventory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | No | Only remove this item id; default: every item. | |
| username | Yes | Exact, case-sensitive name of an online player. | |
| max_count | No | Remove at most this many items; default: all. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||