# tilemap

Tilemap layers: add_layer (new tilemap layer + tileset with tile_width x tile_height tiles, above layer), convert (turn an image layer into a tilemap, deduplicating tiles; flip_aware shares flipped copies), to_image (back to a normal layer), assign_tileset (use another tileset of the same tile size), stamp (the Tile Stamp mode: place tile at canvas pixel x, y, optional flip_x / flip_y / diagonal; tile 0 clears), get_tile, grid (the layer's tile indices as rows, read-only). Isometric tilemaps (Tilemap iso; 2:1 Godot DIAMOND_DOWN diamonds): add_layer with cell_w, cell_h (default cell_w / 2), layout diamond_down and offset [x, y] (the canvas pixel of cell (0, 0)'s box, e.g. cell 96 x 48 at offset [592, 360]) makes an isometric layer: cell (i, j) has its box at (offset_x + (i - j) * cell_w / 2, offset_y + (i + j) * cell_h / 2), i running down-right and j down-left; tile images (tile_width x tile_height, default the cell size) may be taller than the diamond (cliffs, tufts) and overlap the cells behind them. On iso layers stamp / get_tile take the cell i, j (or a canvas pixel x, y, which is turned into its cell; get_tile with x, y also reports the front-most visible tile seen), grid lists cells (rows = j, columns = i) and offset gets or sets the layer's grid offset, which is how layers at other elevations are placed (a ledge half a cell up is the floor's offset minus cell_h / 2 in y). The terrain tools and terrain_paint work on iso layers (modes sides and blob; canvas pixel points are mapped to cells).

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

## Facts

- Tool: `tilemap`
- 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 |
| --- | --- | --- | --- |
| `i` | integer | no | stamp/get_tile: the cell column i (with j) instead of a canvas pixel; on iso layers cell (i, j) is the diamond at offset + ((i - j) * cell_w / 2, (i + j) * cell |
| `j` | integer | no | stamp/get_tile: the cell row j (with i). |
| `x` | integer | no | stamp/get_tile: canvas pixel x inside the cell. |
| `y` | integer | no | stamp/get_tile: canvas pixel y inside the cell. |
| `doc` | string | no | Document id (see doc_list); optional when only one document is open. |
| `name` | string | no | add_layer: name of the new layer. |
| `tile` | integer | no | stamp: tile index (0 clears the cell). |
| `frame` | integer | no | Frame (default: active). |
| `layer` | object | no | The tilemap layer (default: active). add_layer: the new layer goes above it. |
| `action` | string | yes | offset: Isometric layers: get or set the grid offset. |
| `cell_h` | integer | no | add_layer (iso): the diamond cell height (default cell_w / 2). Default tile_height = cell_h. |
| `cell_w` | integer | no | add_layer: makes an ISOMETRIC layer: the diamond cell width in pixels (even; e.g. 96). Default tile_width = cell_w. |

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

## Why tilemap is rated Low

Even though tilemap 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: High parameter count (26 properties)

## Use case

AI agents call tilemap 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": {
    "tilemap": {}
  }
}
```

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