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
| Argument | Type | Required | Description |
|---|---|---|---|
account_id | string | no | X account: numeric channel account ID or @handle (optional; defaults to workspace's sole X account). |
media_file_ids | array | no | DialogBrain file IDs to attach (optional, max 4 per post). |
text | string | yes | Post text (required). X enforces per-account character limits. |