Built-in tool
Write a content piece
Write the piece of Content open beside this chat (an article, a post, a carousel, a video script) in one call.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| pieceIdstring · required | string | required | The piece open beside this chat, exactly as the chat's context names it: the piece's id, or for an article its Page's id. |
| bodystring · optional | string | optional | The whole piece as it should read, replacing what is there. An article: Markdown, without its title (the title goes in title). A post: its text exactly as it goes out; an X thread, carousel slides or video scenes separated by a line of only ---; a carousel's caption as a last part starting "Caption:"; each video scene its narration then a line "On screen: ...". A LinkedIn or X article: its headline as a first line "# Headline", then the text. |
| mediaobject · optional | object | optional | Not for an article. The piece's pictures or clips, replacing what is there: https addresses or the workspace's own upload paths, in order. An empty list removes them. |
| titlestring · optional | string | optional | Its title: an article's headline, a post's short name, a video's title. |