Get Blocks In Area
getBlocksInAreaLists placed non-air blocks inside an inclusive 3D area in a chosen dimension, with optional block-type filtering and pagination for inspecting builds.
Instructions
List placed (non-air) blocks inside an inclusive box in one dimension, sorted by x, y and z. Corners may be supplied in any order. An optional blockType filter matches the block id and, when states are supplied, the exact state map. Results are paginated with limit and offset. Unmodified coordinates are air and are not listed.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "getBlocksInArea"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| limit | No | Maximum number of matching blocks to return (1-10000, default 1000) | |
| offset | No | Number of matching blocks to skip (default 0) | |
| blockType | No | Optional block filter, such as "minecraft:oak_stairs" or "oak_stairs[facing=south]" | |
| dimension | No | Dimension: "overworld" (default), "the_nether" or "the_end" | overworld |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| limit | Yes | ||
| total | Yes | ||
| blocks | Yes | ||
| offset | Yes | ||
| hasMore | Yes | ||
| returned | Yes | ||
| blockType | Yes | ||
| dimension | Yes | ||
| displayName | Yes |