Regelhistorie lesen
get_policy_historyRead confirmation history for one known policy/template. Use list_policies for identities, get_policy for a snapshot, get_policy_write_options for edits. Cross-resource search belongs to get_business_change(view=activity).
Evidence by kind:
policy: adjacent attested snapshots can be compared.
template: confirmation timeline; only the current confirmation is verifiable, without field comparisons.
Policy pages descend by version; templates by confirmation time/ID, with repeated revisions possible. Follow moreVersions using the returned record count. Live inserts may shift pages; deduplicate receiptId.
The structured result describes verification, time precision, comparison availability and currentVersion independently of the page. Unknown identities return no versions or selection.
Requires policy:read and current policies Owner access. Invalid input, storage failure or access loss is an error. Reading restores or activates nothing.
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": {
"kind": "<kind>",
"moduleKey": "<moduleKey>",
"policyKey": "<policyKey>"
},
"name": "get_policy_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Rule kind returned by list_policies; copy it with the same moduleKey and policyKey. | |
| offset | No | Number of native records to skip, default 0; not a revision number. Pages contain at most 15. Continue with offset+versions.length while moreVersions is true. | |
| moduleKey | Yes | Module key of the selected list_policies identity; never a tenant selector. | |
| policyKey | Yes | Policy or template key from that same list_policies identity. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | Yes | ||
| selected | No | Exact requested identity when recorded; omitted for an unknown identity. | |
| versions | Yes | ||
| moreVersions | Yes | ||
| currentVersion | Yes | Current verified revision independently of this page, or null when none is verified. Not the newest record on this page. |