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 si...
This record as markdown: /tools/pixmith-mcp/tilemap.md
What tilemap does on Pixmith
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
i | integer | — | 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 | — | stamp/get_tile: the cell row j (with i). |
x | integer | — | stamp/get_tile: canvas pixel x inside the cell. |
y | integer | — | stamp/get_tile: canvas pixel y inside the cell. |
doc | string | — | Document id (see doc_list); optional when only one document is open. |
name | string | — | add_layer: name of the new layer. |
tile | integer | — | stamp: tile index (0 clears the cell). |
frame | integer | — | Frame (default: active). |
layer | object | — | 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 | — | add_layer (iso): the diamond cell height (default cell_w / 2). Default tile_height = cell_h. |
cell_w | integer | — | 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.
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 signalsHigh parameter count (26 properties)
Attacks that exploit this kind of access
The rule that runs tilemap 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 tilemap, this is the rule to start with:
tilemap is read-only, so it stays allowed. 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 tilemap call is checked against it from then on.
Questions about 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). It is categorised as a Read tool in the Pixmith MCP Server, which means it retrieves data without modifying state.
tilemap accepts 12 parameters: i, j, x, y, doc, name, tile, frame, layer, action, cell_h, cell_w. Required: action. 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 tilemap: 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.
tilemap is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the tilemap 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 tilemap. 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.
tilemap 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