Skip to main content
Glama
Hermoso

Hermoso

Official

Edit an image

edit_image

Modify an existing image using a plain-language instruction while preserving layout, aspect ratio, people, and untouched text. Add logos, swap backgrounds, or remove objects and text in place.

Instructions

EDIT an existing image in place with a plain-language instruction and keep everything else: 'make the headline bigger', 'add our logo bottom right', 'swap the background for a kitchen', 'remove the person on the left', 'erase all the text'. Pass image (URL, Library item, upload_file URL or local path) and instruction. The same edit the web Studio's Edit runs: composition, aspect ratio, people and every untouched line of text stay as they are; the saved brand's real name and website are pinned so an added line never invents one, and the brand's real logo FILE is put on when the instruction asks for the logo (never redrawn by the model): an ask only about the logo ('the logo is wrong', 'make the logo bigger'; or logo:true, any language) runs no image model. Set removal:true when the edit STRIPS text, branding or an object, so nothing branded is put back. When the saved brand has a product photo and the ad shows that product, the photo rides with the edit and the product's label is read and checked against it: re-printed from the photo only when it came out wrong (the check alone is charged when it is right; one small extra charge finds the product first). fixLabel:false turns that off. For a precise region, pass mask (see generate_image). One image edit's credits; returns the new image URL. For a new image from a prompt use generate_image; to rebuild a competitor's ad for your brand use clone_static.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "image": "<image>",
      "instruction": "<instruction>"
    },
    "name": "edit_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
logoNo
maskNooptional mask image (URL or local path) marking the region to change: transparent = change, or white = change on an opaque mask
imageYesthe image to edit: URL, Library item URL, upload_file URL or local path
modelNothe editor, only when the user names one: gpt-image-2.6, gpt-image-2.6-flare (its own faster editor) or gpt-image-2.5. Omit for the default
dryRunNotrue = return what this edit usually costs in credits and render nothing
markupNoMARKUP-GUIDED EDIT: drawn annotations (circles, arrows, scribbles) showing what to change, as a URL or local path: a transparent PNG of just the marks, or a copy of the same image with the marks drawn on it. Say the change in `instruction` ("make the circled vase blue"); the marks are not in the result. Runs on gpt-image-2.6 (or the editor named in `model`). Never with a mask
removalNotrue when the edit REMOVES text, branding, a logo, a watermark, a person or an object, so the brand name and logo are not re-added
fixLabelNofalse = leave the product label exactly as rendered: no product lookup, no label check, no re-print (default on when the ad shows the brand’s saved product)
get_costNotrue: return the price only; nothing runs or bills
complexityNogpt-image-2.6 editors, when the user asks; never inferred from how small the change is: planning depth (default high). Ignored on the default editor
instructionYesthe change to make, in plain words (pass the user’s own words for a removal or plain photo edit)
idempotency_keyNochosen once, resent unchanged on retries: the same key never buys twice
expected_creditsNothe get_cost price; refused unbilled if the live price differs

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.532
    • changedInput schema / properties / complexity / description
      Previous value: -"gpt-image-2.6 editors only: how much it plans before drawing (default high; low suits a small focused change)"New value: +"gpt-image-2.6 editors, when the user asks; never inferred from how small the change is: planning depth (default high). Ignored on the default editor"
    • addedInput schema / properties / expected_credits
      Added value: +{
      +  "description": "the get_cost price; refused unbilled if the live price differs",
      +  "type": "number"
      +}
    • addedInput schema / properties / get_cost
      Added value: +{
      +  "description": "true: return the price only; nothing runs or bills",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "chosen once, resent unchanged on retries: the same key never buys twice",
      +  "type": "string"
      +}
  2. Changed3 schema fields changedv0.1.525
    • addedInput schema / properties / complexity
      Added value: +{
      +  "description": "gpt-image-2.6 editors only: how much it plans before drawing (default high; low suits a small focused change)",
      +  "enum": [
      +    "low",
      +    "medium",
      +    "high"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / markup
      Added value: +{
      +  "description": "MARKUP-GUIDED EDIT: drawn annotations (circles, arrows, scribbles) showing what to change, as a URL or local path: a transparent PNG of just the marks, or a copy of the same image with the marks drawn on it. Say the change in `instruction` (\"make the circled vase blue\"); the marks are not in the result. Runs on gpt-image-2.6 (or the editor named in `model`). Never with a mask",
      +  "type": "string"
      +}
    • addedInput schema / properties / model
      Added value: +{
      +  "description": "the editor, only when the user names one: gpt-image-2.6, gpt-image-2.6-flare (its own faster editor) or gpt-image-2.5. Omit for the default",
      +  "type": "string"
      +}
  3. Changed1 schema field changedv0.1.519
    • addedInput schema / properties / logo
      Added value: +{
      +  "type": "boolean"
      +}
  4. Changed1 schema field changedv0.1.484
    • changedInput schema / properties / dryRun / description
      Previous value: -"true = return the estimated credits this edit reserves and render nothing"New value: +"true = return what this edit usually costs in credits and render nothing"
  5. Changed1 schema field changedv0.1.435
    • changedInput schema / properties / dryRun / description
      Previous value: -"true = return the exact credits this edit reserves and render nothing"New value: +"true = return the estimated credits this edit reserves and render nothing"
  6. Changed1 schema field changedv0.1.366
    • addedInput schema / properties / fixLabel
      Added value: +{
      +  "description": "false = leave the product label exactly as rendered: no product lookup, no label check, no re-print (default on when the ad shows the brand’s saved product)",
      +  "type": "boolean"
      +}
  7. Changed1 schema field changedv0.1.320
    • addedInput schema / properties / dryRun
      Added value: +{
      +  "description": "true = return the exact credits this edit reserves and render nothing",
      +  "type": "boolean"
      +}
  8. Addedv0.1.272

TDQS

A4.8/5.0
Behavior5/5

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

Well beyond the annotations (which only declare readOnlyHint=false, openWorldHint=true, destructiveHint=false), the description discloses preservation guarantees (composition, aspect ratio, untouched text), that the brand logo FILE is placed rather than redrawn, and that brand name/website are pinned against hallucination. It also surfaces cost behavior ('One image edit's credits'), the extra label-check charge, and the returned value (new image URL), none of which the annotations or schema convey.

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?

The core action and the two sibling alternatives are front-loaded and the example instructions are efficient, but the middle section is dense with billing and label-check detail that takes several passes to parse. It is appropriately sized for a 13-parameter tool, though a sentence or two could be tightened.

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

Completeness5/5

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

For a 13-parameter destructive-capable mutation with no output schema, the description covers what is preserved, what is charged, what is returned, and how the logo/product-photo subsystems behave. An agent has everything needed to call it correctly and predict the result.

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

Parameters4/5

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

Schema coverage is already 92%, so the schema carries most parameter meaning; the description nonetheless adds decision-relevant semantics for removal ('so nothing branded is put back'), fixLabel, and logo (any-language logo-only asks run no model). It only lightly touches mask and does not explain model, complexity or idempotency_key in prose, leaving those to the schema.

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

Purpose5/5

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

The description opens with a specific verb+resource ('EDIT an existing image in place') and immediately gives example instructions that show what an edit means. It distinguishes itself explicitly from generate_image (new image) and clone_static (rebuild a competitor's ad), so an agent can route correctly without opening any schema.

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

Usage Guidelines5/5

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

It states when to use this tool and names the alternatives with the conditions that select them ('For a new image from a prompt use generate_image; to rebuild a competitor's ad for your brand use clone_static'). It also gives conditional routing for subtler cases: removal:true when stripping text/branding/objects, logo-only asks that run no image model, and mask for a precise region.

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

Deploy Server

Other Tools