retouch
The app's Blur and Jumble brushes: rework the pixels under a brush stroke along points instead of painting a color. kind blur smooths each pixel with its 3x3 neighbours (alpha-aware), mixed by strength 1-100; jumble swaps pixels with random ones nearby (about size/2 away), each with probability s...
This record as markdown: /tools/pixmith-mcp/retouch.md
What retouch does on Pixmith
AI agents call retouch 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. |
ink | string | — | simple (default; replaces pixels, transparent erases), alpha (blend over), lock_alpha (recolor only opaque pixels), behind (paint under existing pixels), shadin |
kind | string | Yes | blur or jumble. |
seed | integer | — | jumble: random seed (default 1). The same seed gives the same result. |
size | integer | — | Brush size in pixels, 1-64 (default: brush_size, else 3). |
frame | integer | — | Frame (default: the active frame). |
layer | object | — | Layer index or name (default: the active layer). Must not be a group. |
mirror | string | — | Symmetry: also draw mirrored (horizontal = left/right, vertical = top/bottom) across the canvas center, or across `mirror_axis_x` / `mirror_axis_y`. |
points | array | Yes | Path [[x, y], ...] (1-65536 points); consecutive points are joined by a line of dabs. |
strength | integer | — | Effect strength in percent, 1-100 (default 50). Blur: mix with the neighbourhood average. Jumble: chance each pixel is swapped. |
brush_size | integer | — | Brush size in pixels, 1-64 (default 1). |
brush_shape | string | — | square (default) or circle (round brush for sizes above 1). |
Parameters from the server's own tool schema.
Why retouch is rated Low
Without any rule in front of it, every call an agent makes to retouch happens silently: no trail, no cap, no way to know it misbehaved until something breaks downstream.
Risk signalsHigh parameter count (16 properties)
Attacks that exploit this kind of access
The rule that runs retouch 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 retouch, this is the rule to start with:
retouch 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 retouch call is checked against it from then on.
Questions about retouch
The app's Blur and Jumble brushes: rework the pixels under a brush stroke along points instead of painting a color. kind blur smooths each pixel with its 3x3 neighbours (alpha-aware), mixed by strength 1-100; jumble swaps pixels with random ones nearby (about size/2 away), each with probability strength%, repeatable with seed. size is the brush size 1-64; brush_shape circle, a captured custom brush and mirror apply; ink and colors do not. Clipped to the selection; one undo step per call. It is categorised as a Other tool in the Pixmith MCP Server, which means it performs auxiliary operations.
retouch accepts 12 parameters: doc, ink, kind, seed, size, frame, layer, mirror, points, strength, brush_size, brush_shape. Required: kind, points. 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 retouch: 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.
retouch 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 retouch 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 retouch. 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.
retouch 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