agentbrush_edit_mask_open
Open a mask editor session and return the editor URL immediately, without blocking. Prefer agentbrush_edit_mask for most cases — it blocks and returns the edited image automatically when the user accepts. Use this non-blocking variant only if you must keep working while the user draws. IMPORTANT:...
This record as markdown: /tools/dev-agentbrush-mcp-server/agentbrush-edit-mask-open.md
What agentbrush_edit_mask_open does on Mcp Server
AI agents invoke agentbrush_edit_mask_open to trigger actions in Mcp Server. 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 |
|---|---|---|---|
image_path | string | Yes | Absolute path to the image to edit |
instruction | string | Yes | What should change in the masked area (max 500 chars) |
quality_hint | string | — | Quality level for the edit: low=1 token, medium=5 tokens (default), high=20 tokens at 1024×1024. |
Parameters from the server's own tool schema.
Why agentbrush_edit_mask_open is rated High
This tool initiates an external editor session, triggering an external operation (opening a mask editor and generating a session URL). It doesn't merely read data, nor does it write/create a final artifact directly — it launches an interactive external process.
From the tool's definition Open a mask editor session and return the editor URL immediately, without blocking... the edited image is NOT delivered to you until you call agentbrush_edit_mask_result with the returned session_id
Attacks that exploit this kind of access
The rule that runs agentbrush_edit_mask_open safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Mcp Server, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For agentbrush_edit_mask_open, this is the rule to start with:
agentbrush_edit_mask_open 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 Mcp Server, apply this rule, and every agentbrush_edit_mask_open call is checked against it from then on.
Questions about agentbrush_edit_mask_open
Open a mask editor session and return the editor URL immediately, without blocking. Prefer agentbrush_edit_mask for most cases — it blocks and returns the edited image automatically when the user accepts. Use this non-blocking variant only if you must keep working while the user draws. IMPORTANT: the edited image is NOT delivered to you until you call agentbrush_edit_mask_result with the returned session_id. Call it right after handing over the URL so the result is retrieved as soon as the user finishes (it keeps polling until they Accept and Finish). The tool best-effort opens the system default browser to the editor URL and also returns the URL as text so the agent can relay it. Requires authentication — run agentbrush_login first if not authenticated. image_path must be an absolute path to an existing image file within the project. instruction describes what should change in the masked area (max 500 characters). quality_hint: low=1 token, medium=5 tokens (default), high=20 tokens at 1024×1024. It is categorised as a Execute tool in the Mcp Server MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.
agentbrush_edit_mask_open accepts 3 parameters: image_path, instruction, quality_hint. Required: image_path, instruction. The full parameter table on this page comes from the server's own tool schema.
Register the Mcp Server MCP server in PolicyLayer and add a rule for agentbrush_edit_mask_open: 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 Mcp Server. Nothing to install.
agentbrush_edit_mask_open 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 agentbrush_edit_mask_open 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 agentbrush_edit_mask_open. 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.
agentbrush_edit_mask_open is provided by the Mcp Server MCP server (@agentbrush/mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Mcp Server, and thousands of servers like it.
Across the catalogue