Create a finite orthogonal TMJ map
tiled_create_mapCreates a new empty Tiled map file (.tmj) with specified dimensions and tile size. Requires a canonical path without overwriting existing files.
Instructions
Directly creates a new empty TMJ as the sole additive no-preview mutation exception. The caller must confirm the target path; parent directories must exist, and any existing destination—including identical bytes—is never overwritten or treated as success.
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": {
"mapPath": "<mapPath>",
"width": "<width>",
"height": "<height>",
"tileWidth": "<tileWidth>",
"tileHeight": "<tileHeight>"
},
"name": "tiled_create_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| height | Yes | ||
| mapPath | Yes | Canonical project-relative POSIX path; absolute paths and .. are forbidden | |
| tileWidth | Yes | ||
| tileHeight | Yes | ||
| backgroundColor | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |