send_poll
Create and send a poll to a WhatsApp group.
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": {
"toNumber": "<toNumber>",
"name": "<name>",
"choices": "<choices>"
},
"name": "send_poll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The poll question/title | |
| choices | Yes | Array of poll options (minimum 2) | |
| toNumber | Yes | Group ID to send the poll to (e.g., '120363123456789012@g.us') | |
| selectableCount | No | How many options a voter may select (default: 1) |