Skip to main content
Glama

Expand image

generative_expand

Expand an image beyond its original borders with Adobe Firefly, using optional masks, prompts, and size controls; returns output URLs or an async job when wait=false.

Instructions

Expand image. Consumes Firefly Services credits. Returns Adobe output URLs. Set wait=false to return an async job.

Input Schema

NameRequiredDescriptionDefault
nNoCompatibility alias for numVariations. Do not supply both.
maskNoMask image which will be used to expand the given image.
sizeNoThe desired width and height for the final expanded image in pixels. The maximum size for the output images is 3999px by 3999px.
waitNoWait for completion, default true. Set false to return the job immediately.
imageNoThe 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 windows.net dropboxusercontent.com storage.googleapis.com .
seedsNoArray 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 generate a similar image with different styles. If specified along with numVariations, the number of seeds must equal numVariations.
widthNoCompatibility alias: provide together with height instead of size.
heightNoCompatibility alias: provide together with width instead of size.
promptNoAn optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.
confirmNoSet true only when the user asked for exactly this action.
maskUrlNoCompatibility URL alias for mask.source.url.
downloadNoDownload completed media to FIREFLY_OUTPUT_DIR, default false. Requires wait=true.
imageUrlNoCompatibility URL alias for image.source.url.
placementNoThe position of the source image after Firefly resizes it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image.
numVariationsNoGenerate this number of variations. numVariations defaults to the number of seed images, or to 1 if you do not specify seeds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed23 schema fields changedv3.0.0
    • addedInput schema / $defs
      Added value: +{
      +  "url": {
      +    "description": "The pre-signed URL of an uploaded file. Use a URL or an `uploadID` as the source for the image. Firefly only allows these listed domains in the request: amazonaws.com windows.net dropboxusercontent.com storage.googleapis.com .",
      +    "format": "uri",
      +    "maxLength": 2083,
      +    "minLength": 1,
      +    "type": "string"
      +  }
      +}
    • changedInput schema / properties / confirm / description
      Previous value: -"Must be true to spend Firefly Services credits for the operation the user requested."New value: +"Set true only when the user asked for exactly this action."
    • changedInput schema / properties / image / properties / mask / properties / uploadId / format
      Previous value: -"uuid4"New value: +"uuid"
    • addedInput schema / properties / image / properties / mask / properties / url / $ref
      Added value: +"#/$defs/url"
    • removedInput schema / properties / image / properties / mask / properties / url / description
      Removed value: -"The pre-signed URL of an uploaded file. Use a URL or an `uploadID` as the source for the image. Firefly only allows these listed domains in the request: amazonaws.com windows.net dropboxusercontent.com storage.googleapis.com ."
    • removedInput schema / properties / image / properties / mask / properties / url / format
      Removed value: -"uri"
    • removedInput schema / properties / image / properties / mask / properties / url / maxLength
      Removed value: -2083
    • removedInput schema / properties / image / properties / mask / properties / url / minLength
      Removed value: -1
    • removedInput schema / properties / image / properties / mask / properties / url / type
      Removed value: -"string"
    • changedInput schema / properties / image / properties / source / properties / uploadId / format
      Previous value: -"uuid4"New value: +"uuid"
    • addedInput schema / properties / image / properties / source / properties / url / $ref
      Added value: +"#/$defs/url"
    • removedInput schema / properties / image / properties / source / properties / url / description
      Removed value: -"The pre-signed URL of an uploaded file. Use a URL or an `uploadID` as the source for the image. Firefly only allows these listed domains in the request: amazonaws.com windows.net dropboxusercontent.com storage.googleapis.com ."
    • removedInput schema / properties / image / properties / source / properties / url / format
      Removed value: -"uri"
    • removedInput schema / properties / image / properties / source / properties / url / maxLength
      Removed value: -2083
    • removedInput schema / properties / image / properties / source / properties / url / minLength
      Removed value: -1
    • removedInput schema / properties / image / properties / source / properties / url / type
      Removed value: -"string"
    • changedInput schema / properties / mask / properties / source / properties / uploadId / format
      Previous value: -"uuid4"New value: +"uuid"
    • addedInput schema / properties / mask / properties / source / properties / url / $ref
      Added value: +"#/$defs/url"
    • removedInput schema / properties / mask / properties / source / properties / url / description
      Removed value: -"The pre-signed URL of an uploaded file. Use a URL or an `uploadID` as the source for the image. Firefly only allows these listed domains in the request: amazonaws.com windows.net dropboxusercontent.com storage.googleapis.com ."
    • removedInput schema / properties / mask / properties / source / properties / url / format
      Removed value: -"uri"
    • removedInput schema / properties / mask / properties / source / properties / url / maxLength
      Removed value: -2083
    • removedInput schema / properties / mask / properties / source / properties / url / minLength
      Removed value: -1
    • removedInput schema / properties / mask / properties / source / properties / url / type
      Removed value: -"string"
  2. First observedv2.0.0

TDQS

B3.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=true), and the description adds genuinely new context beyond them: it consumes Firefly Services credits (a cost signal), returns Adobe-hosted output URLs, and that wait=false yields an async job. It stops short of mentioning the confirm gating or that download requires wait=true, so it is strong but not exhaustive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, front-loaded with the action and followed by cost, return, and async behavior. Nothing is wasted, though the opening sentence duplicates the title rather than earning its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 15-parameter tool with nested objects, no required fields, no output schema, and heavy alias/deprecation surface, this description is thin. It covers the return value (Adobe output URLs) and async mode, but omits the confirm safety gate and the wait=true prerequisite for download, leaving important cross-parameter behavior to the schema alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% across 15 parameters, so the schema already carries parameter meaning; baseline 3 applies. The description only reinforces the wait parameter and says nothing about the alias pairs (n/numVariations, width+height/size), deprecated image.mask, or the confirm flag. No added semantic value over the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence 'Expand image' essentially restates the tool title, adding no scope detail (outpainting vs. fill vs. similar-generation). It does not distinguish this tool from closely related siblings like generative_fill or generate_similar, so an agent must infer the boundary. The subsequent sentences add operational facts but not purpose differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance and no routing to alternatives such as generative_fill (which also expands images) or generate_similar. The only directive is the tactical 'Set wait=false to return an async job,' which is a parameter hint rather than selection guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.