add_tileset_source
Add an atlas texture source to a Godot TileSet resource, specifying texture path, tile size, margin, and separation to define tiles for use in tilemaps.
Instructions
Add an atlas source (texture) to a TileSet.
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": {
"tileset_path": "<tileset_path>",
"texture_path": "<texture_path>"
},
"name": "add_tileset_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| margin | No | Atlas margin [x, y] | |
| source_id | No | Source index (auto-detected if omitted) | |
| tile_size | No | Tile size [x, y] in pixels | |
| separation | No | Atlas separation [x, y] | |
| texture_path | Yes | Path to the tileset atlas texture (e.g. "res://textures/tiles.png") | |
| tileset_path | Yes | Path to .tres TileSet file |