vote
Cast a vote on an X poll by supplying the poll's card URI, name, tweet ID, and the choice you want to select.
Instructions
Vote on an X poll.
X polls have 2-4 choices and a duration in minutes. The card_uri and card_name come from the tweet's poll card metadata (obtainable via get_tweet).
Args: selected_choice: The label of the choice to vote for (must be non-empty). card_uri: The poll card URI (from the tweet's poll card metadata). tweet_id: The ID of the tweet containing the poll. card_name: The name of the poll card (from the tweet's poll card metadata).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card_uri | Yes | ||
| tweet_id | Yes | ||
| card_name | Yes | ||
| selected_choice | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |