object_tiles
Expand a top-left flat tile id and width/height into the grid of tile ids for an object, correctly handling the sheet's two-half-column layout.
Instructions
Expand a top-left flat tile id + a width×height size into the grid of tile ids that object occupies on the sheet — feed the returned tiles straight into place_object. This handles the flat sheets' two-half-column layout, where the tile below id N is NOT N+16 (indices 0–127 are the left half of the sheet, 128–255 the right), which is otherwise painful to compute by hand. Get the top-left id from find_tile/get_tile_catalog. Read-only. Throws if topLeftId isn't a flat id or the rectangle runs off the 16×16 sheet; warns if the tileset lacks that sheet.
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": {
"tilesetId": "<tilesetId>",
"topLeftId": "<topLeftId>",
"width": "<width>",
"height": "<height>"
},
"name": "object_tiles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Object width in tiles | |
| height | Yes | Object height in tiles | |
| tilesetId | Yes | The tileset id the object belongs to | |
| topLeftId | Yes | Raw flat tile id of the object's top-left cell (from find_tile/get_tile_catalog) |