Generate or edit images via BlockRun. Pays with USDC \u2014 no separate API keys needed. Actions: - generate (default): Create image from text prompt - edit: Transform an existing image using img2img Generation models: - zai/cogview-4 ($0.015) \u2014 Zhipu CogView-4, photorealistic, great for det...
Part of the Blockrun server.
Free to start. No card required.
AI agents use blockrun_image to create or modify resources in Blockrun. Write operations carry medium risk because an autonomous agent could trigger bulk unintended modifications. Rate limits prevent a single agent session from making hundreds of changes in rapid succession. Argument validation ensures the agent passes expected values.
Without a policy, an AI agent could call blockrun_image repeatedly, creating or modifying resources faster than any human could review. PolicyLayer's rate limiting ensures write operations happen at a controlled pace, and argument validation catches malformed or unexpected inputs before they reach Blockrun.
Write tools can modify data. A rate limit prevents runaway bulk operations from AI agents.
{
"version": "1",
"default": "deny",
"tools": {
"blockrun_image": {
"limits": [
{
"counter": "blockrun_image_rate",
"window": "minute",
"max": 30,
"scope": "grant"
}
]
}
}
} See the full Blockrun policy for all 16 tools.
These attack patterns abuse exactly the kind of access blockrun_image gives an agent. Each links to the full case and the policy that stops it:
Other write tools across the catalogue. The same approach applies to each: rate-limit and validate the arguments.
Generate or edit images via BlockRun. Pays with USDC \u2014 no separate API keys needed. Actions: - generate (default): Create image from text prompt - edit: Transform an existing image using img2img Generation models: - zai/cogview-4 ($0.015) \u2014 Zhipu CogView-4, photorealistic, great for detailed scenes - xai/grok-imagine-image ($0.02) \u2014 xAI Grok Imagine, stylized, fast - xai/grok-imagine-image-pro ($0.07) \u2014 xAI Grok Imagine Pro, higher quality - openai/gpt-image-1 ($0.02-0.04) \u2014 GPT native image generation - openai/gpt-image-2 ($0.06-0.12) \u2014 ChatGPT Images 2.0, reasoning-driven, multilingual text rendering + character consistency - openai/dall-e-3 ($0.04-0.08) \u2014 High quality, prompt adherence - google/nano-banana ($0.05) \u2014 Google image model Edit models: openai/gpt-image-1, openai/gpt-image-2 (default for edits). It is categorised as a Write tool in the Blockrun MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
Register the Blockrun MCP server in PolicyLayer and add a rule for blockrun_image: 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 Blockrun. Nothing to install.
blockrun_image 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 blockrun_image 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 blockrun_image. 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.
blockrun_image is provided by the Blockrun MCP server (@blockrun/mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Deterministic rules across all 16 Blockrun tools. Per-identity grants. Full audit log. Live in minutes. Nothing to install.
Free to start. No card required.
4,600+ MCP servers and 31,000+ tools scanned and risk-classified.