Skip to main content

x

x.publish_post

Publish post to X

Effects: write

Publish a post to the connected X (Twitter) account with optional media. Text can include mentions, hashtags, and URLs. Media files are uploaded via v2 chunked upload. Returns tweet_id and URL.

Arguments

ArgumentTypeRequiredDescription
account_idstringnoX account: numeric channel account ID or @handle (optional; defaults to workspace's sole X account).
media_file_idsarraynoDialogBrain file IDs to attach (optional, max 4 per post).
textstringyesPost text (required). X enforces per-account character limits.