Skip to main content
Glama
PengLx
by PengLx

Preview a native TSX write

tiled_preview_write_tsx
Read-only

Serializes a restricted-profile .tsj tileset to TSX bytes matching Tiled's native exporter. Returns an expiring file change set for review and approval.

Instructions

Serializes one restricted-profile project .tsj atlas tileset to TSX bytes matching Tiled 1.12.2's own writer byte for byte. The declared grid must be derivable from the declared image size, margin, and spacing (the official exporter recomputes it, so a disagreeing declaration fails closed rather than drifting); per-tile metadata, wang sets, custom properties, and unknown members also fail closed. The image reference carries verbatim, so the .tsx target must be a new file in the source tileset's directory. Returns an expiring fileExport change set whose producer is the native serializer; apply re-serializes under the pinned source revision and fails closed unless the bytes exactly match the approved content hash. No Tiled CLI is involved.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetPathYesCanonical project-relative POSIX path; absolute paths and .. are forbidden
tilesetPathYesCanonical project-relative POSIX path; absolute paths and .. are forbidden
projectFilePathNoCanonical project-relative POSIX path; absolute paths and .. are forbidden
expectedTilesetRevisionYesSHA-256 revision returned by a read or preview

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Describes failure modes (grid derivation, per-tile metadata, etc.) and the expiring change set lifecycle. Annotations indicate readOnlyHint=true, which is consistent with a preview generating a change set.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single paragraph with front-loaded action and necessary details; no redundancy, though could be slightly more succinct.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers key aspects: operation, constraints, return type, and application behavior. Output schema exists, so return value explanation is not required.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with descriptions. Description adds context about targetPath needing to be a new file in the source directory, enhancing understanding beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool serializes a .tsj tileset to TSX bytes matching Tiled 1.12.2, distinguishing it from siblings like preview_write_tmx and preview_write_tx.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides specific usage constraints (target must be new file in source tileset's directory) and notes no Tiled CLI is involved, but does not explicitly guide when to use vs. alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PengLx/TiledMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server