fedlex.compare_versions
Compare an element or every article between two Fassungen of an act — added, removed, changed paragraphs with wording: use for «was hat sich geändert?». norm.
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": {
"eli": "<eli>",
"from_version": "<from_version>",
"to_version": "<to_version>"
},
"name": "fedlex.compare_versions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eid | No | Optional scope: one element (article or path eId); default every article. | |
| eli | Yes | Fedlex ELI of the act (consolidation abstract). | |
| lang | No | Manifestation language (de|fr|it|en|rm); default de. Which languages a version carries as XML is the graph's answer — fedlex.list_expressions shows it before a read. | |
| to_version | Yes | The newer consolidation: a version IRI or a date. | |
| from_version | Yes | The older consolidation: a version IRI or a date (YYYY-MM-DD / YYYYMMDD). |