warp
Edit > Warp…: bend, stretch or nudge part of a cel like a puppet, without blur and without new colors. A grid of [cols, rows] handles (each 2-8, default [2, 2]) is spread over the selection bounds (the whole canvas when nothing is selected); offsets has one [dx, dy] per handle, row by row from th...
This record as markdown: /tools/pixmith-mcp/warp.md
What warp does on Pixmith
AI agents use warp 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
doc | string | — | Document id (see doc_list); optional when only one document is open. |
grid | array | — | Handle grid [cols, rows], each 2-8 (default [2, 2]). |
pins | array | — | Point handles (at most 32). |
frame | integer | — | Frame (default: active). |
layer | object | — | Layer (default: active). |
scale | integer | — | preview: integer upscale (default auto). |
smooth | boolean | — | Interpolate between handles with a Catmull-Rom spline instead of bilinearly. |
offsets | array | — | One [dx, dy] per handle, row by row from the top-left (cols * rows entries; default all zeros). |
preview | boolean | — | Return an image of the warped frame and change nothing. |
samples | integer | — | Sample points per output pixel along each axis, 1-8 (default 4). |
background | string | — | preview: "checker" (default), "transparent" or a color. |
Parameters from the server's own tool schema.
Why warp is rated Medium
An AI agent can call warp 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 signalsHigh parameter count (16 properties)
Attacks that exploit this kind of access
The rule that runs warp 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 warp, this is the rule to start with:
warp stays usable, but capped: an agent stuck in a loop can't make hundreds of changes 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 warp call is checked against it from then on.
Questions about warp
Edit > Warp…: bend, stretch or nudge part of a cel like a puppet, without blur and without new colors. A grid of [cols, rows] handles (each 2-8, default [2, 2]) is spread over the selection bounds (the whole canvas when nothing is selected); offsets has one [dx, dy] per handle, row by row from the top-left (cols * rows entries; the content at that handle moves by that many pixels), interpolated bilinearly or, with smooth=true, with a Catmull-Rom spline. pins ([{x, y, dx, dy, radius}], up to 32) move the content within radius of a canvas point by up to (dx, dy), fading out smoothly. The result is resampled by majority vote (samples points per output pixel along each axis, 1-8, default 4): nothing is blended. Only selected pixels are read or changed. One undo step; returns changed=false when no pixel moved. The result lists the handle positions (handles, canvas coordinates) so you can aim the offsets. preview=true returns an image of the frame with the warp applied and changes nothing. Very thin 1 px diagonals can break under a strong bend. It is categorised as a Write tool in the Pixmith MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
warp accepts 11 parameters: doc, grid, pins, frame, layer, scale, smooth, offsets, preview, samples, background. 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 warp: 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.
warp is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the warp 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 warp. 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.
warp 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