tilemap_fill_rect
Fill a rectangular area of a TileMap node with a specific tile in Godot, providing the start cell, width, height, and optional layer to populate multiple cells at once.
Instructions
Fill a rectangular area of a TileMap with a specific tile.
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": {
"node_path": "<node_path>",
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>"
},
"name": "tilemap_fill_rect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Top-left cell X | |
| y | Yes | Top-left cell Y | |
| layer | No | TileMap layer index (default: 0) | |
| width | Yes | Fill width in cells | |
| height | Yes | Fill height in cells | |
| node_path | Yes | Path to the TileMap node | |
| source_id | No | TileSet source ID |