select
Change the selection (one undo step each): rect (Rectangular Marquee: x, y, w, h), lasso (Lasso: freehand outline points), polygon (Polygonal Lasso: corner points), wand (Magic Wand at x, y with tolerance; contiguous by default), by_color (Select by Color: every pixel matching the color at x, y),...
This record as markdown: /tools/pixmith-mcp/select.md
What select does on Pixmith
AI agents use select 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 |
|---|---|---|---|
h | integer | — | rect: height. |
w | integer | — | rect: width. |
x | integer | — | rect: left; wand/by_color: sample point x. |
y | integer | — | rect: top; wand/by_color: sample point y. |
dx | integer | — | move_pixels: horizontal offset. |
dy | integer | — | move_pixels: vertical offset. |
col | integer | — | iso_tile: cell column (with row); alternative to x, y. |
doc | string | — | Document id (see doc_list); optional when only one document is open. |
row | integer | — | iso_tile: cell row (with col). |
mode | string | — | replace (default), add or subtract — for rect, polygon, lasso, wand, by_color, iso_tile (the app's Shift = add, Alt = subtract). |
frame | integer | — | Frame (default: active). |
layer | object | — | Layer sampled by wand/by_color and edited by delete/move_pixels (default: active); iso_tile: the isometric tilemap layer whose grid to use. |
Parameters from the server's own tool schema.
Why select is rated Medium
An AI agent can call select 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 (21 properties) · Bulk/mass operation — affects multiple targets
Attacks that exploit this kind of access
The rule that runs select 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 select, this is the rule to start with:
select 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 select call is checked against it from then on.
Questions about select
Change the selection (one undo step each): rect (Rectangular Marquee: x, y, w, h), lasso (Lasso: freehand outline points), polygon (Polygonal Lasso: corner points), wand (Magic Wand at x, y with tolerance; contiguous by default), by_color (Select by Color: every pixel matching the color at x, y), iso_tile (Select > Isometric Tile: the diamond cell of an isometric grid, by a pixel x, y or by col, row; the grid is the active isometric tilemap layer's (or layer's) when there is one, else the document's iso_grid settings, default 32x16 at 0, 0; or give tile_w, tile_h, offset_x, offset_y), all, none, invert, expand/contract/border (by amount pixels). mode = replace (default), add or subtract combines with the existing selection. Also edits the selected pixels: delete (clear them), move_pixels (the Move tool: shift the selected pixels by dx, dy), crop (crop the canvas to the selection bounds). Returns the selection bounds. Drawing and filters only affect selected pixels while a selection exists; select none to remove it. 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.
select accepts 12 parameters: h, w, x, y, dx, dy, col, doc, row, mode, frame, layer. 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 select: 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.
select 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 select 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 select. 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.
select 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