Diff two bill-text versions
get_bill_diffCompare two versions of a bill's text (GET /v1/bills/{bill_id}/diff): a unified diff plus similarity, added/removed line and character counts, and changed-section highlights. Get the two version ids from get_bill with include:['texts'] — each text row's text_id. Pass them as from (the earlier version) and to (the later version). Diffs are precomputed, so only bills that have more than one text version return one.
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": {
"bill_id": "<bill_id>",
"from": "<from>",
"to": "<to>"
},
"name": "get_bill_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Text-version id of the later version to compare against. | |
| from | Yes | Text-version id of the earlier version (the baseline). | |
| bill_id | Yes | bill_id the two texts belong to. |