undo
Undo the last steps edits (default 1). Every mutating tool call is one undo step (or one per transaction).
This record as markdown: /tools/pixmith-mcp/undo.md
What undo does on Pixmith
AI agents call undo as a supporting operation in Pixmith workflows.
| Parameter | Type | Required | Description |
|---|---|---|---|
doc | string | — | Document id (see doc_list); optional when only one document is open. |
steps | integer | — | How many steps (default 1). |
Parameters from the server's own tool schema.
Why undo is rated Low
Without any rule in front of it, every call an agent makes to undo happens silently: no trail, no cap, no way to know it misbehaved until something breaks downstream.
Risk signalsBulk/mass operation — affects multiple targets
Attacks that exploit this kind of access
The rule that runs undo 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 undo, this is the rule to start with:
undo gets a rate cap, and 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 undo call is checked against it from then on.
Questions about undo
Undo the last steps edits (default 1). Every mutating tool call is one undo step (or one per transaction). It is categorised as a Other tool in the Pixmith MCP Server, which means it performs auxiliary operations.
undo accepts 2 parameters: doc, steps. 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 undo: 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.
undo is a Other tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the undo 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 undo. 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.
undo 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