Live: end poll
end_pollClose an open poll and retrieve its results, including total responses and per-option counts and percentages so viewers can see result bars.
Instructions
Close a poll and get its results; viewers see the result bars. total = number of people who answered; per option count and pct (share of those people, whole percent; single choice adds up to 100). Calling it again returns the same results with event_id null (only the first call closes it and tells the room). Also works after the webinar ended; ending the webinar closes its open poll. Example result: {total: 20, results: [{index: 0, option: "1-10", count: 12, pct: 60}, ...]}
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": {
"webinar_id": "<webinar_id>",
"poll_id": "<poll_id>"
},
"name": "end_poll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | true: validate and show what would happen without changing anything | |
| poll_id | Yes | poll_id from start_poll (or a poll.started event) | |
| webinar_id | Yes | Webinar id (UUID) from list_webinars or create_webinar | |
| idempotency_key | No | Any unique string; retrying with the same key and arguments within 24 h returns the first answer instead of doing it twice |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| result | Yes | ||
| status | No | ||
| changes | No | ||
| dry_run | No | ||
| message | No | ||
| error_code | No |