draft_post
Use ONLY when the user explicitly asks AI to write, generate, or help compose a post, e.g. 'write me a post about X', 'draft something about Y'. Do NOT use this when the user provides their own content. Uses AI to generate content in the user's voice and the workspace's brand identity (positioning / audience / pillars), then saves it as a draft. PREFER this over writing the post yourself and calling save_draft: it applies the full voice engine.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| images | No | Images, a video, or one PDF to attach. For ANY image beyond a thumbnail, call upload_image FIRST to get a presigned S3 URL, upload via the returned curl command, then pass the s3_key here. Inline `data` is only for tiny images (≤50 KB); `file_path` is dev-only. A PDF posts as a LinkedIn document (a swipeable carousel): LinkedIn only, one per post, never alongside images or video. | |
| prompt | Yes | Topic or instructions for what to write | |
| youtube | No | YouTube-specific options. Required platform inputs: a video must be attached via `images` (the upload tool accepts video MIME types). If `title` is omitted, it is derived from the first line of content (truncated to 100 chars). | |
| platform | No | Target platform. Influences tone and length. Instagram needs an image or video on the post: upload one with `upload_image` (or make one with `generate_image`) and pass its s3_key in `images`. | |
| draft_anyway | No | Set true to make the writer draft with what it has instead of asking for more context. Use when a previous draft_post call came back with 'Need more to draft this' and the user would rather you just write it. |