Add article media (image or GIF)
add_article_mediaAdd a screenshot or GIF to the article. It goes right after the block holding the screenshot named in after ("start" for the top), in place of the screenshot named in replace, or else at the end of the article. Returns its screenshot_id (it appears in the article as <SCREENSHOT screenshot_id>) and the new article_version.
kind="image": one of
timestamp(capture a frame from the project's base video),mcp_upload_id(an uploaded image:mup_…from upload_file, or a Clueso upload_id),source_url(an image URL, e.g. one generate_media returned) orprompt(generate an AI illustration for the article; optionalstyle_idandaspect_ratio, default 16:9). A generated image costs AI credits like generate_media's and takes a few seconds; ask for little or no text in it, since generated text is often misspelled.kind="gif": pass
timestamp(start) andduration(seconds). Captures a short GIF clip from the base video. Requires the project to have a video clip. A GIF still rendering after ~20s returnsstatus: "processing"and ajob_id: it is added to the article when ready (follow it with get_media_job).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | 'image' or 'gif'. | |
| after | No | Put it right after the block holding this screenshot_id, or 'start' / 'end' (the default). | |
| prompt | No | kind='image' only: generate an AI illustration from this prompt instead of capturing or attaching one. | |
| replace | No | Put it in place of this screenshot_id, wherever that sits; the old one is removed from the article. | |
| duration | No | kind='gif' only: GIF duration in seconds. | |
| style_id | No | kind='image' with prompt only: an image style pack ID from find(type='image_gen_style_packs'). | |
| timestamp | No | kind='image': capture frame at this timestamp (seconds). kind='gif': GIF start time. | |
| project_id | Yes | Project ID. | |
| source_url | No | kind='image' only: an https image URL to download and attach. | |
| aspect_ratio | No | kind='image' with prompt only: the illustration's shape. Default 16:9. | |
| mcp_upload_id | No | kind='image' only: attach an uploaded image (mcp_upload_id from upload_file, or a Clueso upload_id) instead of capturing from video. |