Skip to main content
Glama

OpenAI 改图

aidada_image_edit

Edit, outpaint, or compose up to 16 reference images with a specified model using prompts, masks, markup, and local files, HTTPS URLs, or file IDs.

Instructions

使用指定 model 编辑/扩图/多图合成。支持最多 16 张参考图、mask、markup、本地文件、HTTPS/data URL、file_id。纯本地走 multipart;混合输入中的本地文件临时上传并自动清理。

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": {
      "prompt": "<prompt>",
      "images": "<images>"
    },
    "name": "aidada_image_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNo
maskNoPNG 透明区表示修改区域,尺寸匹配首张输入;与 markup 互斥。
sizeNoauto 或 WIDTHxHEIGHT;自定义边长为 16 的倍数,最终预算由上游校验。
userNo已弃用的兼容字段;优先 safety_identifier。
modelNo默认 gpt-image-2.6-sunburst;可指定快照或其他有权限的图片模型。
styleNo旧 DALL·E 3 兼容字段;GPT Image 的风格写入 prompt。
imagesYes
markupNo与首图同尺寸的透明 PNG 标注层;与 mask/prompt_rewriter 互斥。
promptYes完整图片要求;原样发送,不由 MCP 改写。
streamNo使用 OpenAI SSE,保存中间图和最终图。
qualityNo按所选模型支持范围使用;standard/hd 仅保留旧 API 兼容。
wait_msNoMCP 等待时间;超时返回 job_id,任务继续。用 aidada_image_result 查询,禁止重复生成同一请求。
transportNoauto:所有输入为本机文件用 multipart;含 URL/file_id 用 JSON,混合本机文件会先上传 Files API。auto
backgroundNo
complexityNo绘制前规划强度,独立于 quality;省略时 Sunburst 2.6 默认 high。
extra_bodyNo新增官方字段的透传入口;不能覆盖已列出的字段,不能夹带 HTTP 请求头。
moderationNo
frame_countNoGIF 帧数;官方指南与 SDK 上限不同,16 以上须由账户实际 API 验证。
output_formatNo
input_fidelityNo仅旧 GPT Image 1.x 支持;Sunburst 必须省略。
partial_imagesNo
include_previewNo返回可内联显示的栅格图片;大文件仍以资源链接返回。
prompt_rewriterNo高级原样透传;公开文档未定义稳定类型。不支持 markup、SVG、GIF。
response_formatNo旧 API 兼容;GPT Image 自动返回 base64,必须省略。
client_request_idNo可选客户端请求标识:同进程重复调用返回原任务;不是上游幂等或跨重启保证。
frame_duration_msNoGIF 每帧时长;API 取整到 10ms,具体范围以模型为准。
safety_identifierNo
output_compressionNo

Output Schema

NameRequiredDescriptionDefault
jobYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the annotations, the description discloses two non-obvious behaviors: pure-local inputs use multipart while mixed inputs trigger a temporary upload to the Files API that is automatically cleaned up, and the 16-reference-image ceiling. It does not cover auth requirements, cost/latency, or the job_id polling flow, which appear only in the schema's wait_ms field.

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?

Three short sentences, each carrying a distinct fact: capability, accepted input forms, and transport/upload behavior. The most decision-relevant information (what it does) is front-loaded. Minor density cost from the parameter enumeration in sentence two.

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 28-parameter, open-world image tool with an output schema, the description covers the two hardest areas, input sourcing and transport, but says nothing about long-running behavior, polling via aidada_image_result, or the model-dependent fields (complexity, input_fidelity, quality). Adequate, not complete.

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?

With 71% schema description coverage across 28 parameters, the schema already defines most fields in detail, including the mask/markup mutual exclusivity and the path/URL/file_id input unions. The description restates those input forms at a high level but adds no format or constraint detail the schema lacks. A 3 is the correct baseline here.

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

Purpose4/5

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

The description opens with a specific verb and resource set: edit / outpainting / multi-image composition with a given model. That clearly separates it from aidada_image_generate in intent, although it never names the sibling to make the distinction explicit. An agent can tell what the tool produces without reading the schema.

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

Usage Guidelines3/5

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

Usage is only implied by the tool's name and the mention of reference images, mask, and markup. There is no explicit statement such as 'use this when you already have source images, use aidada_image_generate otherwise,' and no mention of pairing with aidada_image_result after a wait_ms timeout. The transport rule (local files → multipart) is the one concrete routing instruction.

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