Diff two versions of a North Carolina (NC) statute
diff_statuteWord-level diff of a North Carolina (NC) statute section between two versions.
mode="pending" compares the text in force against an enacted-but-not-yet-effective
variant — use this for "what will change on 1 October". mode="observed" compares
versions this database has actually recorded, optionally between two dates.
CANNOT show text from before the ingest's first observation: observed history begins then, so most sections have only one version and return diff: null. For earlier change dates use amendment_history; for pending text use pending_changes.
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": {
"citation": "<citation>"
},
"name": "diff_statute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "observed" compares versions this database recorded; "pending" compares today's text with text enacted but not yet in effect. | observed |
| format | No | "unified" (a line diff), "html" (word-level <del>/<ins> markup) or "both". | unified |
| to_date | No | With mode "observed": the later date (YYYY-MM-DD). | |
| citation | Yes | The section to diff. Add mode="pending" to compare today's text against an enacted-but-not-yet-effective version. | |
| from_date | No | With mode "observed": the earlier date (YYYY-MM-DD), compared with the version at to_date. Omit both dates to compare the latest two recorded versions. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||