export_godot_tileset
File > Export Tileset to Godot: export a tileset as a Godot 4 TileSet resource (.tres) with its atlas PNG, including the terrain set and peering bits from terrain auto-tiling (or mode when there is none), flipped alternatives and optional collision shapes; write_scene=true also writes a .tscn wit...
This record as markdown: /tools/pixmith-mcp/export-godot-tileset.md
What export_godot_tileset does on Pixmith
AI agents use export_godot_tileset to create or update resources in Pixmith, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Pixmith environment.
| Parameter | Type | Required | Description |
|---|---|---|---|
doc | string | — | Document id (see doc_list); optional when only one document is open. |
mode | string | — | Terrain mode when the layer has no auto-tile data: blob (default), corners, sides. |
margin | integer | — | |
extrude | integer | — | Edge pixels to replicate around each tile. |
preview | boolean | — | Describe the export without writing. |
tileset | object | — | Tileset index or name (default 0). |
collision | string | — | none (default), full (tile square) or polygon (traced from opaque pixels). |
tres_path | string | Yes | Output .tres inside the project (relative paths are relative to project_root). |
separation | integer | — | |
max_texture | integer | — | Atlas page size limit (default 4096). |
write_scene | boolean | — | Also write <name>.tscn with TileMapLayer nodes painted from the tilemap layers. |
project_root | string | Yes | Godot project folder (contains project.godot). |
Parameters from the server's own tool schema.
Why export_godot_tileset is rated Medium
An AI agent can call export_godot_tileset faster than any human can review: one bad instruction and it creates or modifies resources in Pixmith by the hundred, each call as confident as the last.
Risk signalsHigh parameter count (14 properties) · Bulk/mass operation — affects multiple targets
Attacks that exploit this kind of access
The rule that runs export_godot_tileset safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Pixmith, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For export_godot_tileset, this is the rule to start with:
export_godot_tileset stays usable, but capped: an agent stuck in a loop can't make hundreds of changes a minute. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Pixmith, apply this rule, and every export_godot_tileset call is checked against it from then on.
Questions about export_godot_tileset
File > Export Tileset to Godot: export a tileset as a Godot 4 TileSet resource (.tres) with its atlas PNG, including the terrain set and peering bits from terrain auto-tiling (or mode when there is none), flipped alternatives and optional collision shapes; write_scene=true also writes a .tscn with TileMapLayer nodes painted from the document's tilemap layers. Isometric tilesets (Tilemap iso) export as tile_shape ISOMETRIC / tile_layout DIAMOND_DOWN with tile_size = the diamond cell, every tile's pivot as its texture_origin, peering bits turned to Godot's isometric names and no flipped alternative tiles; the scene positions each isometric TileMapLayer at the layer's grid offset (its elevation) with y_sort_enabled so tall tiles overlap the cells behind them. preview=true describes the export without writing (the core's description plus a tileset block: tile_shape, tile_layout, tile_size, cell and image sizes, a texture_origin summary and the isometric scene layers with their positions). It is categorised as a Write tool in the Pixmith MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
export_godot_tileset accepts 12 parameters: doc, mode, margin, extrude, preview, tileset, collision, tres_path, separation, max_texture, write_scene, project_root. Required: tres_path, project_root. The full parameter table on this page comes from the server's own tool schema.
Register the Pixmith MCP server in PolicyLayer and add a rule for export_godot_tileset: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Pixmith. Nothing to install.
export_godot_tileset is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the export_godot_tileset rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for export_godot_tileset. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
export_godot_tileset is provided by the Pixmith MCP server (pixmith-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Pixmith, and thousands of servers like it.
This server
Across the catalogue