Generate an AI cover image
generate_cover_imageGenerate cover artwork with AI and attach it to one of the caller's ebooks. Neither a prompt nor an art style is required: with no prompt the concept is derived from the ebook's own section headings, so create the content first and this fits it. Supply 'prompt' to direct the imagery, mood and palette. The artwork is always wordless: Unplain draws the title itself, and the no-text rule cannot be lifted by a prompt. Set the cover LAYOUT separately with update_ebook's cover.style. This spends the SAME AI cover allowance as generating one in the Unplain web app (get_account reports the plan); MCP has no separate allowance. A failed generation costs nothing. The image is attached to the ebook rather than returned, and appears in the exported PDF.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | No | Optional visual direction for the artwork, for example "a lone figure on a windswept cliff, muted greys". Describe imagery, mood and palette only: Unplain draws the title itself, and the image is generated with a hard no-text rule that no prompt can lift. Omit this and the concept is derived from the ebook's own section headings. | |
| artStyle | No | Medium and mood of the artwork. Defaults to 'auto', which imposes no style constraint. This is separate from the cover LAYOUT, which is update_ebook's cover.style. | |
| projectId | Yes | ||
| replaceExisting | No | Required to overwrite a cover image the ebook already has. Left false, a call against an ebook that already has one fails without spending an AI cover allowance, which makes an accidental retry safe. |