Diff
diffCompare two versions of a legal provision to see what changed. Use this when someone asks 'what changed in the latest DORA amendment', 'how did this article change between versions', or 'show me the differences in GDPR Article 17 after the update'. Returns a structured diff with added, removed, and modified text. The text content is one JSON document. Its evidence_summary field carries the 'Sources used' markdown table (the audit receipt per returned row) or a labelled zero-result note. Result rows carry url/title/subtitle display fields alongside their citation when available. meta.render_contract carries the versioned evidence-curation contract.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| law | Yes | Instrument the provision belongs to, as a framework id ('GDPR', 'DORA') or the corpus's own law identifier. | |
| article | Yes | Article or section number within the instrument, such as '17' or '5(1)(a)'. | |
| to_date | No | End of the comparison window as an ISO date. Empty means the version currently in force. | |
| from_date | No | Start of the comparison window as an ISO date, e.g. '2024-01-01'. Empty means the corpus picks the earliest version it holds. | |
| jurisdiction | Yes | ISO-2 code of the jurisdiction that owns the provision, such as EU or SE. |