Compare two versions of a bill's text
compare_textsParagraph-level comparison between a text and another version of the same bill, always from the older to the newer. Use it to see what an amendment process or a Senate reading changed. Without 'otherTextId' the previous version of the procedure is used; an error says when no comparison is possible. Long comparisons are cut: the 'truncated' field says so.
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": {
"textId": "<textId>"
},
"name": "compare_texts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| textId | Yes | Text identifier, from get_bill ('texts') or get_vote ('textId'). | |
| otherTextId | No | Identifier of the version to compare with. Must be one of the 'comparableVersions' of get_text. Default: the previous version. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| added | No | Number of added segments. | |
| after | No | The newer version. | |
| before | No | The older version. | |
| removed | No | Number of removed segments. | |
| modified | No | Number of modified segments. | |
| segments | No | The segments, in reading order. | |
| alignment | No | How the two were aligned. | |
| identical | No | True when the two versions are identical. | |
| truncated | No | Present when this answer was shortened to stay short: says what was cut and how to get the rest. | |
| unchanged | No | Number of unchanged segments. |