mcp-duojie-image
v0.19.0MCP server for image generation via duojie.games
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
generate_image
Create a new image from a text prompt, optionally guided by reference images (style, identity, composition, material). To modify an existing image use edit_image. Async: returns task_id — poll with check_image_task / wait_all_tasks.
| Parameter | Type | Description |
|---|---|---|
output_dir * | string | Absolute output directory |
output_filename * | string | Filename without extension |
prompt * | string | What to render: subject, style, composition |
aspect_ratio | string | W:H, e.g. 1:1, 16:9, 9:21. Default 1:1; soft guidance only — aspect follows upstream, resolution upscaled to the requested tier; check saved_dimensions |
asset_type | string | Where the image will be used |
constraints | string | Must-keep or must-avoid rules |
format | string | Default png |
input_images | array | Structured references; don't combine with reference_images |
model | string | Default gpt-image-2.6-flare (fastest, drafts); sunburst = best quality, slowest; 2.6 standard & 2.5 family removed |
negative_prompt | string | Content to avoid |
overwrite | boolean | Default false; same-name file fails |
preserve_reference_detail | boolean | Upload references unresized (less stable) |
reference_images | array | Local image paths guiding the result; never edited in place |
reference_max_side | integer | Resize cap for reference uploads; default 512 (single) / 256 (multi), edit 1024 |
silent | boolean | Skip desktop notification |
size | string | Default 1K; pixel budget — smaller upstream output is upscaled to it |
edit_image
Apply a small explicit change (e.g. remove an object, recolor) to one existing image, preserving everything else; requires exactly one edit_target. For new images or restyled variants use generate_image. Async: returns task_id — poll with check_image_task / wait_all_tasks.
| Parameter | Type | Description |
|---|---|---|
edit_target * | string | Existing image to modify |
output_dir * | string | Absolute output directory |
output_filename * | string | Filename without extension |
prompt * | string | What to render: subject, style, composition |
aspect_ratio | string | W:H, e.g. 1:1, 16:9, 9:21. Default 1:1; soft guidance only — aspect follows upstream, resolution upscaled to the requested tier; check saved_dimensions |
asset_type | string | Where the image will be used |
constraints | string | Must-keep or must-avoid rules |
format | string | Default png |
input_images | array | Structured references; don't combine with reference_images |
model | string | Default gpt-image-2.6-flare (fastest, drafts); sunburst = best quality, slowest; 2.6 standard & 2.5 family removed |
negative_prompt | string | Content to avoid |
overwrite | boolean | Default false; same-name file fails |
preserve_reference_detail | boolean | Upload references unresized (less stable) |
reference_images | array | Local image paths guiding the result; never edited in place |
reference_max_side | integer | Resize cap for reference uploads; default 512 (single) / 256 (multi), edit 1024 |
silent | boolean | Skip desktop notification |
size | string | Default 1K; pixel budget — smaller upstream output is upscaled to it |
check_image_task
Poll an image task until terminal: done → saved_path; failed → error.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | Task id from generate_image/edit_image |
wait_all_tasks
Wait for all in-flight image tasks and return all results at once. Immediate when none are running; on timeout returns partial results — call again.
| Parameter | Type | Description |
|---|---|---|
timeout_seconds | integer | Block at most this long, default 300, max 600 |