Vote in a poll
vote_in_pollCast or retract your account's vote on a WhatsApp poll message by entering exact option names; an empty list retracts it, and the updated tally is returned.
Instructions
Vote in a poll message as the account that received or sent it, with the names of its options (get_message shows them). An empty list retracts the vote. Returns the poll with its tally.
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": {
"messageId": "<messageId>",
"options": "<options>"
},
"name": "vote_in_poll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | Yes | Option names exactly as in the poll. `[]` retracts the vote. | |
| messageId | Yes | A wuapi message id (from list_messages, a send tool, or a webhook). | |
| idempotencyKey | No | Optional. Reuse the same key when retrying this exact call: within 24 hours wuapi returns the first result instead of doing it twice. |