diff
Compare versions of a legal text between two dates. Identifies which versions applied and retrieves the texts for side-by-side comparison.
Instructions
What changed between two dates for one work: which versions applied, and where both texts are held, retrieve them via as_of to compare.
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": {
"work": "<work>",
"from_date": "<from_date>",
"to_date": "<to_date>"
},
"name": "diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| work | Yes | Work-level lex_id (publisher:workkey), version-level lex_id (version segment ignored), or verbatim publisher identifier. Unknown document -> call search first. | |
| to_date | Yes | ISO date | |
| language | No | language code | |
| from_date | Yes | ISO date |