Set an article draft's cover
set_article_coverSets the cover image of one of the signed-in person's draft articles, replacing any cover it has. The image is cropped to 16:9 around its center at 1600 by 900, as the editor does. Published articles can't be changed here. Returns the cover's public address. Give the image exactly one way: uploadId, from create_image_upload once its file was sent (use it for any file on this machine or anything over about 50 KB, rather than base64); imageUrl, a public https address Shipfolio downloads (no private or local addresses); or imageBase64 with mimeType (image/png, image/jpeg, image/webp or image/gif), only for a tiny image. At most 8 MB (5 MB for a logo). It is re-encoded as WebP without its metadata. Counts as an image upload, which has its own daily limit; an uploadId was counted when its file arrived. Needs the write scope. Before calling, show the user exactly what will change and wait for them to confirm.
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": {
"articleId": "<articleId>"
},
"name": "set_article_cover"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| imageUrl | No | A public https address of the image | |
| mimeType | No | With imageBase64: image/png, image/jpeg, image/webp or image/gif | |
| uploadId | No | The uploadId from create_image_upload, after its file was sent to uploadUrl. Works once, within 15 minutes | |
| articleId | Yes | The draft article's id, from create_article_draft or list_my_articles | |
| imageBase64 | No | A tiny image's bytes as base64 (a data: URL is accepted). For a file, use uploadId instead |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| width | Yes | ||
| height | Yes | ||
| changed | Yes | ||
| editUrl | Yes | ||
| coverUrl | Yes | ||
| replaced | Yes | ||
| articleId | Yes |