Show what changed to the reader
show_changesShows the reader what changed: presents a comparison or a change inventory to the reader as an interactive card, this service's intended way of showing what changed between the two texts of a served pair. With article, the card is that article's word-level comparison, side by side with every change marked, as compare_versions serves it. With articles, one card holds those articles as a filtered inventory, each opening its comparison in place. Without either, the card is the instrument's inventory of changed articles grouped by kind of change, with the editors' notes, as list_version_changes serves it. The result is a one-line summary with the site link; the card loads its own data. compare_versions and list_version_changes return the same comparison as data, for an answer that quotes or reasons over the wording.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| article | No | An article number. With it, the card is that article's comparison; without it and without articles, the instrument's change inventory. | |
| articles | No | Several article numbers: one card holding those articles as a filtered inventory, each opening its comparison in place. Not with article. | |
| instrument_id | Yes | Registry id of the instrument, e.g. "psr". | |
| to_version_id | No | With from_version_id, the later text of the pair: both ids or neither. The same ids and aliases. | |
| from_version_id | No | Optional; both ids or neither. Where the instrument has one published pair, that pair is shown. A version id, or an alias the instrument defines: proposal, compromise, council, published. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | Yes | ||
| text | Yes | ||
| warnings | No |