generative_fill
Fill image. Consumes Firefly Services credits. Returns Adobe output URLs. Set wait=false to return an async job.
This record as markdown: /tools/thenavidm-firefly-mcp-cli/generative-fill.md
What generative_fill does on Firefly Mcp Cli
AI agents use generative_fill to create or update resources in Firefly Mcp Cli, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Firefly Mcp Cli environment.
| Parameter | Type | Required | Description |
|---|---|---|---|
n | integer | — | Compatibility alias for numVariations. Do not supply both. |
mask | object | — | Required. Selected areas of a background image that Firefly uses to fill the source image. |
size | object | — | The desired width and height for the final expanded image in pixels. The supported sizes for the output images are: Square (1:1) - width 2048px, height 2048px S |
wait | boolean | — | Wait for completion, default true. Set false to return the job immediately. |
image | object | — | The image to expand. Use a URL or an uploadID as the source for the image. Firefly only allows these listed domains for input URLs in the request: amazonaws.com |
seeds | array | — | Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to gen |
width | integer | — | Compatibility alias: provide together with height instead of size. |
height | integer | — | Compatibility alias: provide together with width instead of size. |
prompt | string | — | An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs. |
confirm | boolean | — | Set true only when the user asked for exactly this action. |
maskUrl | string | — | Compatibility URL alias for mask.source.url. |
download | boolean | — | Download completed media to FIREFLY_OUTPUT_DIR, default false. Requires wait=true. |
Parameters from the server's own tool schema.
Why generative_fill is rated Medium
An AI agent can call generative_fill faster than any human can review: one bad instruction and it creates or modifies resources in Firefly Mcp Cli by the hundred, each call as confident as the last.
Risk signalsAccepts URL/endpoint input (image.mask.url) · High parameter count (28 properties)
Attacks that exploit this kind of access
The rule that runs generative_fill safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Firefly Mcp Cli, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For generative_fill, this is the rule to start with:
generative_fill 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 Firefly Mcp Cli, apply this rule, and every generative_fill call is checked against it from then on.
Questions about generative_fill
Fill image. Consumes Firefly Services credits. Returns Adobe output URLs. Set wait=false to return an async job. It is categorised as a Write tool in the Firefly Mcp Cli MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
generative_fill accepts 12 parameters: n, mask, size, wait, image, seeds, width, height, prompt, confirm, maskUrl, download. The full parameter table on this page comes from the server's own tool schema.
Register the Firefly Mcp Cli MCP server in PolicyLayer and add a rule for generative_fill: 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 Firefly Mcp Cli. Nothing to install.
generative_fill 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 generative_fill 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 generative_fill. 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.
generative_fill is provided by the Firefly Mcp Cli MCP server (@thenavidm/firefly-mcp-cli). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Firefly Mcp Cli, and thousands of servers like it.
This server
Across the catalogue