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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"selected_choice": "<selected_choice>",
"card_uri": "<card_uri>",
"tweet_id": "<tweet_id>",
"card_name": "<card_name>"
},
"name": "vote"
}
}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 |