Skip to main content
Glama

Decompose an image with Seedream

seedream_decompose_image
Destructive

Split an image into a base image and editable layers to enable layer-level edits, with optional OCR and support for up to 99 layers.

Instructions

Split an image into a base image and editable layers. Seedream 5.5 supports up to 99 layers and OCR.

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>"
    },
    "name": "seedream_decompose_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNoOutput size: auto, 1K, 1.5K, or 2K.auto
imageYesOne PNG or JPEG URL/base64 image to decompose.
modelNodoubao-seedream-5-0-pro-260628
promptNoOptional elements to decompose; omit for automatic decomposition. Supports <bbox> coordinates.
watermarkNoWhether to add an AI-generated watermark.
max_imagesNoSeedream 5.5 maximum image count, including the base image.
callback_urlNoOptional webhook URL for async delivery.
output_formatNoBase image format; layers are always PNG.jpeg
text_recognitionNoReturn styled OCR for recognized text layers in Seedream 5.5.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.23
    • addedInput schema / properties / max_images
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 100,
      +      "minimum": 2,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Seedream 5.5 maximum image count, including the base image.",
      +  "title": "Max Images"
      +}
    • addedInput schema / properties / model
      Added value: +{
      +  "default": "doubao-seedream-5-0-pro-260628",
      +  "enum": [
      +    "doubao-seedream-5-5-261028",
      +    "doubao-seedream-5-0-pro-260628",
      +    "doubao-seedream-5-0-flash-260915"
      +  ],
      +  "title": "Model",
      +  "type": "string"
      +}
    • addedInput schema / properties / text_recognition
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Return styled OCR for recognized text layers in Seedream 5.5.",
      +  "title": "Text Recognition"
      +}
  2. Addedv0.1.15

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare destructive=true, readOnly=false, and non-idempotent, so the safety burden is partly covered. The description adds capability context (up to 99 layers, OCR support, layered output structure) but says nothing about the async/task lifecycle implied by callback_url and the seedream_get_task sibling, nor about credit cost or what the returned artifacts look like beyond 'editable layers'.

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

Conciseness5/5

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

Two short sentences, front-loaded with the core action and followed by a capability note. Nothing is redundant or padded.

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?

Output schema and rich parameter descriptions cover the return-value and argument side, but for a 9-parameter, destructive, open-world tool the description omits how this differs from sibling image tools and how asynchronous delivery works. It is adequate but leaves real operational gaps.

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 89%, so nearly every parameter is already documented in the schema, making 3 the baseline. The description adds no parameter-level meaning beyond repeating the layer and OCR capabilities, and does not clarify model-gated parameters such as max_images and text_recognition being Seedream 5.5-only.

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 first sentence states a specific verb and resource ('Split an image into a base image and editable layers'), which is clearly distinct from generate/edit siblings. It does not name or contrast those siblings, so an agent must infer that this is the layer-decomposition path rather than a plain edit.

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 explicit when-to-use or when-not-to-use guidance relative to seedream_edit_image or seedream_generate_image. The only conditional hint ('omit for automatic decomposition') lives in the prompt parameter rather than the description, so usage context is left to inference.

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