render
Render the sprite as a PNG image you can look at (MCP image content). Defaults: the active frame, all visible layers composited, scaled up so the long side is about 512 px, on a light checkerboard so transparency is visible. Options: other frames (up to 16 images at once), a single layer or group...
This record as markdown: /tools/pixmith-mcp/render.md
What render does on Pixmith
AI agents invoke render to trigger actions in Pixmith. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call: builds kicked off, notifications sent, workflows started.
| Parameter | Type | Required | Description |
|---|---|---|---|
doc | string | — | Document id (see doc_list); optional when only one document is open. |
frame | integer | — | Frame to render (default: the active frame). |
layer | object | — | Render only this layer (index or name; a group renders with its children), even if hidden. |
scale | integer | — | Integer upscale 1-64 (default: auto, long side about 512 px; output is capped at 4096 px). |
frames | array | — | Several frames, one image each (max 16). Overrides `frame`. |
region | object | — | Only this rectangle of the canvas. |
diff_prev | boolean | — | Frame Difference: tint the pixels that changed from the previous frame over the render (magenta changed, green appeared, red disappeared). Off by default. |
diff_wrap | boolean | — | diff_prev: the frame before frame 0 is the last frame (default true; false = frame 0 has no reference). |
background | string | — | "checker" (default), "transparent", or a color such as "#ffffff". |
diff_layer | object | — | diff_prev: compare only this layer's cel instead of the composite (the app's "Active layer only"). |
onion_skin | object | — | Show neighboring frames faintly (off by default). |
diff_opacity | number | — | diff_prev: opacity of the tint, 0.1-1 (default 0.65). |
Parameters from the server's own tool schema.
Why render is rated High
render triggers real processes with real consequences. An agent gone sideways doesn't fire it once. It starts dozens of builds, sends mass notifications, or burns through compute before anyone looks up.
Risk signalsHigh parameter count (19 properties)
Attacks that exploit this kind of access
The rule that runs render 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 render, this is the rule to start with:
render stays usable, but rate-capped: a runaway agent can't fire it dozens of times 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 render call is checked against it from then on.
Questions about render
Render the sprite as a PNG image you can look at (MCP image content). Defaults: the active frame, all visible layers composited, scaled up so the long side is about 512 px, on a light checkerboard so transparency is visible. Options: other frames (up to 16 images at once), a single layer or group in isolation (shown even if hidden), a region, an explicit integer scale, a solid/transparent background, and Onion Skin (onion_skin: neighboring frames tinted red = before, blue = after) and View > Frame Difference (diff_prev=true: pixels that changed from the previous frame tinted over the render, magenta = changed, green = appeared, red = disappeared; diff_opacity, diff_wrap, diff_layer; see also the frame_diff tool for counts). The app's Grid, Isometric Grid, Tiled Mode and Preview are view-only and are not drawn. Never changes the document. For exact colors use get_pixels. It is categorised as a Execute tool in the Pixmith MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.
render accepts 12 parameters: doc, frame, layer, scale, frames, region, diff_prev, diff_wrap, background, diff_layer, onion_skin, diff_opacity. 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 render: 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.
render is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.
Yes. Add a rate_limit block to the render 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 render. 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.
render 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.
Across the catalogue