Generate article
generate_articleWrites the article of one content calendar topic of a site, the same as Generate in the Calendar and the daily automation. Without confirm, returns the plan and starts nothing (status plan): the articles used and left this month and today, the Article Credits, and whether the article uses an Article Credit because the month limit is reached. Show the plan to the user, and call again with confirm: true only after the user agrees; when the plan uses an Article Credit, add useArticleCredit: true. With confirm: true, reads the plan again and starts the article (status generating). When the plan read again uses an Article Credit and the call has no useArticleCredit: true, it returns the plan (status plan) and starts nothing. Keytomic writes it in a few minutes: follow it with list_calendar_topics with topicId (generationStatus), and read it with get_draft when it is ready. The article counts when Keytomic saves the draft. When the topic cannot get an article now, both calls answer a tool error and use nothing: a topic with an article (topic_has_article), a topic whose article Keytomic writes now (topic_generation_in_progress), a topic the workspace cannot open (topic_not_in_plan), or a usage limit. The site needs saved Image Studio settings.
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": {
"projectId": "<projectId>",
"topicId": "<topicId>"
},
"name": "generate_article"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | true starts the article. Send it only after the user saw the plan this tool returns without confirm and agreed. Without it, the tool returns the plan and starts nothing. | |
| topicId | Yes | Topic whose article to write, from list_calendar_topics. | |
| projectId | Yes | Site to act on, from list_sites. | |
| useArticleCredit | No | true agrees that the article uses 1 Article Credit. Send it with confirm: true only when the plan says that the article uses an Article Credit and the user agreed. Without it, a start that uses an Article Credit returns the plan and starts nothing. |