Open Container
minecraft_open_containerOpens a chest, barrel, or similar container at specified coordinates and lists its contents. Walks within reach first and keeps the container open for deposit or withdrawal actions.
Instructions
Opens a chest, trapped chest, barrel, shulker box, dispenser, or dropper at the given coordinates and lists its contents. Walks within reach first. The container stays open until minecraft_close_container is called — minecraft_container_deposit/withdraw act on whatever is currently open.
Returns: { message, containerType: string, items: [{ slot, name, count }] } Errors: no container block there, or unreachable.
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": {
"x": "<x>",
"y": "<y>",
"z": "<z>"
},
"name": "minecraft_open_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| z | Yes |