# filter

Apply an FX filter to a cel (default), every frame of a layer (target=layer) or every layer of a frame (target=frame), limited to the selection's bounds when something is selected or to region. Kinds and their parameters: replace_color (from_color, to_color, tolerance), invert, desaturate, hsl (hue -180..180, saturation and lightness -100..100), brightness_contrast (brightness, contrast -100..100), color_balance (red, green, blue offsets -255..255), outline (color, inside, eight_connected), drop_shadow (dx, dy, color), remove_isolated_pixels (eight_connected), blur, sharpen (3x3, alpha-aware), curves (curve_rgb / curve_red / curve_green / curve_blue / curve_alpha: [[x, y], ...] control points in 0-255), clean_edges (FX > Clean Edges…: tidy a sprite traced from reference art, never touching interior detail such as eyes, 1 px highlights or fingers; passes halo [halo_rings, halo_gain, halo_saturation], despeckle [pieces smaller than N pixels that touch the outside], holes [fill enclosed transparent areas smaller than N], light_specks, thin_outline [thickness, outline_color, outline_tolerance, outline_luma]; name no pass to run halo + despeckle + thin_outline with their defaults, otherwise only the passes you name run; use the read-only lint tool to see what is wrong first), remove_background (FX > Remove Background…: make the paper background transparent by flood fill from the border: tolerance 0-255 default 28, shadow [also a soft drop shadow, shadow_depth 1-95 percent], global [also enclosed background-colored pixels], color [background color; default the dominant border color]). preview=true returns an image of the result and changes nothing; with region the image is cropped to that region (the result says so).

Agent View of the PolicyLayer registry record for `filter`. HTML page: https://policylayer.com/tools/pixmith-mcp/filter

## Facts

- Tool: `filter`
- Server: Pixmith (`pixmith-mcp`) — https://policylayer.com/tools/pixmith-mcp.md
- Install: `npx -y pixmith-mcp`
- Homepage: https://www.npmjs.com/package/pixmith-mcp
- Risk category: Destructive (Critical risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 12 (1 required)
- Recommended policy verdict: Hidden

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `dx` | integer | no | drop_shadow: offset (default 1). |
| `dy` | integer | no | drop_shadow: offset (default 1). |
| `doc` | string | no | Document id (see doc_list); optional when only one document is open. |
| `hue` | integer | no | hsl: degrees -180..180. |
| `red` | integer | no | color_balance: -255..255. |
| `blue` | integer | no | color_balance: -255..255. |
| `halo` | boolean | no | clean_edges halo pass: remove light, grayish paper-halo pixels from the outer rings (true, or give halo_rings). |
| `kind` | string | yes | clean_edges: FX > Clean Edges…; remove_background: FX > Remove Background… |
| `color` | string | no | outline/drop_shadow: color (default black); remove_background: the background color (default: the dominant border color). |
| `frame` | integer | no | Frame (default: active). |
| `green` | integer | no | color_balance: -255..255. |
| `holes` | integer | no | clean_edges: fill enclosed transparent areas smaller than this many pixels (0 = off; a transparent eye is a hole too). |

Parameters from the server's own tool schema.

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "filter",
    "arguments": {
      "kind": "<kind>"
    }
  }
}
```

## Why filter is rated Critical

An AI agent that decides to call filter doesn't hesitate, doesn't double-check, and doesn't stop at one. Whatever it removes from Pixmith is gone. There is no undo for destructive operations.

Risk signals: High parameter count (49 properties) · Bulk/mass operation — affects multiple targets

## Use case

AI agents call filter to permanently remove resources in Pixmith, typically in cleanup and lifecycle workflows. It does its job in a single call, and there is no undo.

## Recommended policy (PolicyLayer)

Verdict: **Hidden**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Pixmith:

```json
{
  "version": "1",
  "default": "deny",
  "hide": [
    "filter"
  ]
}
```

## Other tools on Pixmith (58)

- `brush` — Destructive — https://policylayer.com/tools/pixmith-mcp/brush.md
- `cel` — Destructive — https://policylayer.com/tools/pixmith-mcp/cel.md
- `clipboard` — Destructive — https://policylayer.com/tools/pixmith-mcp/clipboard.md
- `frame` — Destructive — https://policylayer.com/tools/pixmith-mcp/frame.md
- `help` — Destructive — https://policylayer.com/tools/pixmith-mcp/help.md
- `iso_grid` — Destructive — https://policylayer.com/tools/pixmith-mcp/iso-grid.md
- `layer` — Destructive — https://policylayer.com/tools/pixmith-mcp/layer.md
- `palette` — Destructive — https://policylayer.com/tools/pixmith-mcp/palette.md
- `slice` — Destructive — https://policylayer.com/tools/pixmith-mcp/slice.md
- `tag` — Destructive — https://policylayer.com/tools/pixmith-mcp/tag.md
- `terrain` — Destructive — https://policylayer.com/tools/pixmith-mcp/terrain.md
- `terrain_paint` — Destructive — https://policylayer.com/tools/pixmith-mcp/terrain-paint.md
- `trace` — Destructive — https://policylayer.com/tools/pixmith-mcp/trace.md
- `doc_new` — Execute — https://policylayer.com/tools/pixmith-mcp/doc-new.md
- `draw_curve` — Execute — https://policylayer.com/tools/pixmith-mcp/draw-curve.md
- `draw_text` — Execute — https://policylayer.com/tools/pixmith-mcp/draw-text.md
- `free_transform` — Execute — https://policylayer.com/tools/pixmith-mcp/free-transform.md
- `render` — Execute — https://policylayer.com/tools/pixmith-mcp/render.md
- `run_lua` — Execute — https://policylayer.com/tools/pixmith-mcp/run-lua.md
- `sprite_size` — Execute — https://policylayer.com/tools/pixmith-mcp/sprite-size.md
- `transaction` — Execute — https://policylayer.com/tools/pixmith-mcp/transaction.md
- `transform` — Execute — https://policylayer.com/tools/pixmith-mcp/transform.md
- `tween` — Execute — https://policylayer.com/tools/pixmith-mcp/tween.md
- `color_mode` — Other — https://policylayer.com/tools/pixmith-mcp/color-mode.md
- `draw_pixels` — Other — https://policylayer.com/tools/pixmith-mcp/draw-pixels.md
- `draw_polygon` — Other — https://policylayer.com/tools/pixmith-mcp/draw-polygon.md
- `draw_shape` — Other — https://policylayer.com/tools/pixmith-mcp/draw-shape.md
- `draw_stroke` — Other — https://policylayer.com/tools/pixmith-mcp/draw-stroke.md
- `gradient` — Other — https://policylayer.com/tools/pixmith-mcp/gradient.md
- `history_goto` — Other — https://policylayer.com/tools/pixmith-mcp/history-goto.md
- …and 28 more: https://policylayer.com/tools/pixmith-mcp.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=pixmith-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/pixmith-mcp
