Edit article with AI
edit_article_with_aiRewrites an article's body with AI following your instructions (tone, length, add a section, fix facts...) and saves it. Targets the default-language version unless locale is given; also_apply_to_locales runs the same instructions on extra translations, one credit each. Synchronous and slow: the call takes one to several minutes, wait for it instead of retrying. Editing an article that is already published (or published in draft) marks it Out of Sync until it is synced with sync_article_to_cms or published again. Only locales that were actually rewritten are charged. Use batch_edit_articles_with_ai for many articles, and the update_* tools for headline, meta description or slug. Costs AI brain credits (see the cost rule above), charged after the work, not refunded on failure. Requires an active subscription or free trial. Pass confirm=true to acknowledge the AI brain credits charge; without it the tool only returns the cost and your balance. Pass website_id when the account has several websites (see get_account).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locale | No | Translation locale (e.g. "fr") to target instead of the default-language article. | |
| confirm | No | Set to true to acknowledge the AI brain credit charge. Omit it to only get the cost and your balance. | |
| article_id | Yes | Article id from list_articles. | |
| website_id | No | Website id from get_account. Optional when the account has a single website. | |
| instructions | Yes | What to change in the article. | |
| also_apply_to_locales | No | Extra translation locales to rewrite with the same instructions (one credit each). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| article_id | No | ||
| edited_locales | No | Locales that were rewritten and charged. | |
| failed_locales | No | ||
| credits_balance | No | Current AI brain credits balance; only with requires_confirmation. | |
| credits_charged | No | ||
| credits_required | No | AI brain credits the call would charge; only with requires_confirmation. | |
| credits_balance_after | No | AI brain credits balance after this call. | |
| requires_confirmation | No | Present when the tool did not run: it needs confirm=true. The other fields are then absent. |