tiled-ai

Installation
SKILL.md

Tiled AI

Use the connected tiled-ai MCP tools to edit the live document. The extension applies changes through Tiled's API and Undo stack. Map edits do not save files automatically. TSX/TMX creation and explicit save_tileset/save_map write files.

Bootstrap when needed

When the user asks to install, connect or use this integration and prerequisites are missing, follow references/setup.md. With shell/filesystem tools, install the extension, configure the MCP client and start the shared bridge within that request's scope. Reuse existing installations and secrets. Do not merely describe commands that you can execute. Ask only for a missing location or a manual editor/client action you cannot perform safely.

Discover the actual MCP tool names from the available tool catalog before calling them. In code-mode, search ALL_TOOLS when available; never invent a JavaScript identifier such as tools.mcp__tiled_ai__get_editor_state. An absent tool, a bridge connection failure and an empty editor session list are different conditions. A skill can install software but cannot inject tools into a running task's catalog; report which setup steps succeeded and whether a client reload is still required.

Establish the target

Call get_editor_state. Choose the intended session and document from the returned IDs, using the active document when the request refers to the current map. An empty session list means the extension needs Map → Tiled AI: Connect, with the MCP server already running. Do not edit disk files to work around a disconnected editor.

Read get_map_info, list_layers and get_selection. Read relevant cells with read_region and objects with get_objects. Follow pagination. A selection can consist of several rectangles; its bounding rectangle is not its exact mask. Check layer IDs, ancestor locks and offsets.

Choose tiles from evidence

Read list_tilesets and inspect get_tileset_images. These tools return labeled images with local tile IDs and properties. offset indexes existing tiles; sparse IDs are not array indexes. Identify roof, facade, door and decoration from images instead of guessing IDs from a tile's name or position in a different atlas.

Installs
62
Repository
rpgjs/tiled-ai
GitHub Stars
15
First Seen
Sep 16, 2026