Diff Article
diff_articleCompare a Mexican federal law article's text between two dates to identify word-level or unified changes, including intervening versions that modified it.
Instructions
What changed in one article between two dates, as a word-level or unified diff, plus the versions in between that touched it.
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": {
"law": "<law>",
"article": "<article>",
"date_from": "<date_from>"
},
"name": "diff_article"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| law | Yes | Law abbreviation or slug, e.g. 'LFT', 'CPEUM', 'lgsm'. See list_laws. | |
| mode | No | 'words': changed paragraphs with [-removed-] {+added+} marks; 'unified': classic unified diff by paragraph. | words |
| article | Yes | Article number as written in the law: '27', '1o', '3o. Bis', '15-A', '353-Ñ', '29-A Bis', '21 bis 1'. Extra words such as 'fracción IV' are ignored. | |
| date_to | No | Later date (YYYY-MM-DD or 'hoy'). | hoy |
| date_from | Yes | Earlier date (YYYY-MM-DD). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |