generative_expand
Expand 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-expand.md
What generative_expand does on Firefly Mcp Cli
AI agents use generative_expand 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 | — | Mask image which will be used to expand the given image. |
size | object | — | The desired width and height for the final expanded image in pixels. The maximum size for the output images is 3999px by 3999px. |
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_expand is rated Medium
An AI agent can call generative_expand 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 (35 properties)
Attacks that exploit this kind of access
The rule that runs generative_expand 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_expand, this is the rule to start with:
generative_expand 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_expand call is checked against it from then on.
Questions about generative_expand
Expand 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_expand 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_expand: 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_expand 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_expand 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_expand. 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_expand 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