transform
Edit > Flip Horizontal / Flip Vertical / Rotate 90: flip or rotate the selected pixels, or the whole cel when nothing is selected: flip_horizontal, flip_vertical, rotate_cw / rotate_ccw / rotate_180 (exact 90-degree turns), or rotate by any angle in degrees (clockwise) with RotSprite resampling (...
This record as markdown: /tools/pixmith-mcp/transform.md
What transform does on Pixmith
AI agents invoke transform 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. |
angle | number | — | rotate: angle in degrees, clockwise. |
frame | integer | — | Frame (default: active). |
layer | object | — | Layer (default: active). |
action | string | Yes | |
rotsprite | boolean | — | rotate: RotSprite resampling (default true). |
all_frames | boolean | — | Apply to every frame of the layer. |
all_layers | boolean | — | Apply to every image layer of the frame(s). |
Parameters from the server's own tool schema.
Why transform is rated High
transform 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.
Attacks that exploit this kind of access
The rule that runs transform 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 transform, this is the rule to start with:
transform 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 transform call is checked against it from then on.
Questions about transform
Edit > Flip Horizontal / Flip Vertical / Rotate 90: flip or rotate the selected pixels, or the whole cel when nothing is selected: flip_horizontal, flip_vertical, rotate_cw / rotate_ccw / rotate_180 (exact 90-degree turns), or rotate by any angle in degrees (clockwise) with RotSprite resampling (keeps pixel-art edges crisp; rotsprite=false for nearest neighbour). all_frames / all_layers repeat it over frames / layers, all in one undo step. 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.
transform accepts 8 parameters: doc, angle, frame, layer, action, rotsprite, all_frames, all_layers. 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 transform: 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.
transform 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 transform 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 transform. 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.
transform 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