Preview per-tile metadata updates
tiled_update_tileValidates and returns an expiring changeset for updating tile properties (animation, collision, custom properties) or adding/removing collection tiles, without modifying project assets.
Instructions
Validates bounded probability, class, animation, scalar custom-property, and collision-shape updates for tiles of one currently referenced external TSJ (atlas or image-collection), then returns an expiring tileset change set without modifying project assets. Collision replaces the whole objectgroup objects array with basic shapes (null removes it); tile geometry, atlas images, and referencing maps are never touched. Image-collection tilesets additionally accept structural updates, each exclusive to its change set: createCollectionTile adds a new sparse tile entry from a verified project image (the planner reads the image and pins its actual pixel size; tilecount and the maximum tile size follow), and removeCollectionTile (destructive) deletes an existing entry after proving the current map holds no reference to it and no other project asset references the tileset — a shrinking GID span must not strand references. Removing the last entry fails closed. An embedded (inline) map tileset is addressed by its original tilesets[] index via embeddedIndex instead (exactly one selector; expectedTilesetRevision must then be omitted — the map revision is the only pin) and returns an embeddedTilesetEdit change set that patches the map itself; structural collection updates are impossible there because embedded tilesets are atlas-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mapPath | Yes | Canonical project-relative POSIX path; absolute paths and .. are forbidden | |
| updates | Yes | ||
| embeddedIndex | No | ||
| tilesetAssetId | No | ||
| expectedMapRevision | Yes | SHA-256 revision returned by a read or preview | |
| expectedTilesetRevision | No | SHA-256 revision returned by a read or preview |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |