create_poll
Create an X poll with 2-4 choices and a duration in minutes, returning a card URI for attaching the poll to a tweet.
Instructions
Create an X poll and return its card URI.
X polls have 2-4 choices and a duration in minutes. Pass the returned card_uri to send_tweet's poll_uri parameter to attach the poll.
Args: choices: Poll choices (2-4 entries required; each must be non-empty). duration_minutes: Poll duration in minutes (must be > 0).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| choices | Yes | ||
| duration_minutes | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |