The text a vote relates to
get_vote_text_contextGet the bill, the text and the summaries of what a vote was about. Use it to explain a vote in plain words after get_vote. When the text voted on has no summary, 'nearbySummary' holds the summary of another version of the bill: say it is not the text voted on. Says so in a 'message' when the vote is not attached to a text.
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": {
"voteId": "<voteId>"
},
"name": "get_vote_text_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| voteId | Yes | Vote identifier, from list_votes or get_vote. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| billId | No | Identifier of the bill. | |
| number | No | Number. | |
| pdfUrl | No | URL of the PDF at the source. | |
| textId | No | Identifier of the text. | |
| sourceUrl | No | URL of the source. | |
| truncated | No | Present when this answer was shortened to stay short: says what was cut and how to get the rest. | |
| typeLabel | No | Kind of text (French). | |
| filingDate | No | Filing date. | |
| longSummary | No | Long summary. | |
| pdfAvailable | No | True when a PDF is held for the text. | |
| shortSummary | No | Short summary. | |
| nearbySummary | No | AI summary of another version of the same bill, present only when the version described here has no AI summary. It is not the text that was voted on: name it as such. Null otherwise. | |
| contentAvailable | No | True when the full text is readable (see /texts/{id}). | |
| explanatoryMemorandum | No | Explanatory memorandum. |