# tileset

Work with tilesets (tile index 0 is always the empty tile). Actions: list, image (see every tile as one picture, labeled grid in index order), get_tile (pixels of one tile in the legend format), set_tile (replace a tile's pixels from rows+legend or a PNG path), add_tile (append an empty tile, or one with pixels), duplicate_tile, delete_tile (alias: remove_tile; cells using it become empty, higher indices shift down), rename, set_base_index (the number shown for tile 1). Isometric tilesets (Tilemap iso): set_iso {cell_w, cell_h} makes a tileset isometric (cell_w 0 makes it square again; only while no layer shows its tiles), get_pivot / set_pivot {tile, pivot: [x, y]} / clear_pivot (the pivot is the point of the tile image, from its top-left corner, that sits on the center of the diamond; the default is centered and, for images taller than the cell, bottom-aligned so the diamond is the bottom cell_h rows), pivots (every tile's pivot, custom ones marked) and texture_origin {tile?} (the pivot as Godot's TileData.texture_origin, offset from the image center, which export_godot_tileset writes). Drawing on a tilemap layer also edits the tiles it shows.

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

## Facts

- Tool: `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: Read (Low risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 12 (1 required)
- Recommended policy verdict: Allowed

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `doc` | string | no | Document id (see doc_list); optional when only one document is open. |
| `name` | string | no | rename: new name. |
| `path` | string | no | set_tile/add_tile: PNG file with the tile's pixels (tile-sized). |
| `rows` | array | no | set_tile/add_tile: one string per row, one legend character per pixel (as returned by get_tile). |
| `tile` | integer | no | get_tile/set_tile/duplicate_tile/delete_tile: tile index (1 = first real tile). |
| `pivot` | array | no | set_pivot: [x, y] point of the tile image, from its top-left corner, that sits on the center of the diamond. |
| `scale` | integer | no | image: integer upscale (default auto). |
| `action` | string | yes | set_iso: Isometric tilesets: make a tileset isometric (or square again). |
| `cell_h` | integer | no | set_iso: diamond cell height in pixels (default cell_w / 2). |
| `cell_w` | integer | no | set_iso: diamond cell width in pixels (even; 0 makes the tileset square again). |
| `legend` | object | no | set_tile/add_tile: character -> color; "." is transparent unless mapped. |
| `tileset` | object | no | Tileset index or name (default: the tileset of the active layer, else 0). |

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": "tileset",
    "arguments": {
      "action": "<action>"
    }
  }
}
```

## Why tileset is rated Low

Even though tileset only reads data, uncontrolled read access leaks sensitive information and racks up API costs: an agent caught in a retry loop can make thousands of calls a minute without anyone noticing.

Risk signals: Accepts file system path (path) · High parameter count (13 properties) · Bulk/mass operation — affects multiple targets

## Use case

AI agents call tileset to retrieve information from Pixmith without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

## Recommended policy (PolicyLayer)

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

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "tileset": {}
  }
}
```

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