# 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).

Agent View of the PolicyLayer registry record for `export_godot_tileset`. HTML page: https://policylayer.com/tools/pixmith-mcp/export-godot-tileset

## Facts

- Tool: `export_godot_tileset`
- Server: Pixmith (`pixmith-mcp`) — https://policylayer.com/tools/pixmith-mcp.md
- Install: `npx -y pixmith-mcp`
- Homepage: https://www.npmjs.com/package/pixmith-mcp
- Risk category: Write (Medium risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 12 (2 required)
- Recommended policy verdict: Rate-limited

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `doc` | string | no | Document id (see doc_list); optional when only one document is open. |
| `mode` | string | no | Terrain mode when the layer has no auto-tile data: blob (default), corners, sides. |
| `margin` | integer | no |  |
| `extrude` | integer | no | Edge pixels to replicate around each tile. |
| `preview` | boolean | no | Describe the export without writing. |
| `tileset` | object | no | Tileset index or name (default 0). |
| `collision` | string | no | 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 | no |  |
| `max_texture` | integer | no | Atlas page size limit (default 4096). |
| `write_scene` | boolean | no | 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.

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "export_godot_tileset",
    "arguments": {
      "tres_path": "<tres_path>",
      "project_root": "<project_root>"
    }
  }
}
```

## 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 signals: High parameter count (14 properties) · Bulk/mass operation — affects multiple targets

## Use case

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.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Pixmith:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "export_godot_tileset": {
      "limits": [
        {
          "counter": "export_godot_tileset_rate",
          "window": "minute",
          "max": 30,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Pixmith (58)

- `brush` — Destructive — https://policylayer.com/tools/pixmith-mcp/brush.md
- `cel` — Destructive — https://policylayer.com/tools/pixmith-mcp/cel.md
- `clipboard` — Destructive — https://policylayer.com/tools/pixmith-mcp/clipboard.md
- `filter` — Destructive — https://policylayer.com/tools/pixmith-mcp/filter.md
- `frame` — Destructive — https://policylayer.com/tools/pixmith-mcp/frame.md
- `help` — Destructive — https://policylayer.com/tools/pixmith-mcp/help.md
- `iso_grid` — Destructive — https://policylayer.com/tools/pixmith-mcp/iso-grid.md
- `layer` — Destructive — https://policylayer.com/tools/pixmith-mcp/layer.md
- `palette` — Destructive — https://policylayer.com/tools/pixmith-mcp/palette.md
- `slice` — Destructive — https://policylayer.com/tools/pixmith-mcp/slice.md
- `tag` — Destructive — https://policylayer.com/tools/pixmith-mcp/tag.md
- `terrain` — Destructive — https://policylayer.com/tools/pixmith-mcp/terrain.md
- `terrain_paint` — Destructive — https://policylayer.com/tools/pixmith-mcp/terrain-paint.md
- `trace` — Destructive — https://policylayer.com/tools/pixmith-mcp/trace.md
- `doc_new` — Execute — https://policylayer.com/tools/pixmith-mcp/doc-new.md
- `draw_curve` — Execute — https://policylayer.com/tools/pixmith-mcp/draw-curve.md
- `draw_text` — Execute — https://policylayer.com/tools/pixmith-mcp/draw-text.md
- `free_transform` — Execute — https://policylayer.com/tools/pixmith-mcp/free-transform.md
- `render` — Execute — https://policylayer.com/tools/pixmith-mcp/render.md
- `run_lua` — Execute — https://policylayer.com/tools/pixmith-mcp/run-lua.md
- `sprite_size` — Execute — https://policylayer.com/tools/pixmith-mcp/sprite-size.md
- `transaction` — Execute — https://policylayer.com/tools/pixmith-mcp/transaction.md
- `transform` — Execute — https://policylayer.com/tools/pixmith-mcp/transform.md
- `tween` — Execute — https://policylayer.com/tools/pixmith-mcp/tween.md
- `color_mode` — Other — https://policylayer.com/tools/pixmith-mcp/color-mode.md
- `draw_pixels` — Other — https://policylayer.com/tools/pixmith-mcp/draw-pixels.md
- `draw_polygon` — Other — https://policylayer.com/tools/pixmith-mcp/draw-polygon.md
- `draw_shape` — Other — https://policylayer.com/tools/pixmith-mcp/draw-shape.md
- `draw_stroke` — Other — https://policylayer.com/tools/pixmith-mcp/draw-stroke.md
- `gradient` — Other — https://policylayer.com/tools/pixmith-mcp/gradient.md
- …and 28 more: https://policylayer.com/tools/pixmith-mcp.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=pixmith-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/pixmith-mcp
