Unternehmensregeln · Inaktiv
deactivate_policyPreview deactivation of an automation policy without saving or applying it. Use this only for an explicit stop; use prepare_policy_change for other replacements.
Read get_policy_write_options first. Choose canDeactivate=true and copy moduleKey, policyKey and expectedRevision from that same option. The revision identifies the complete current state, not a proposed value. Only standing-send permissions and public-post plans support deactivation.
The existing Owner card consumes the preview's exact nextAction.arguments. Only a human can confirm; models never call confirmation. Confirmation preserves other settings and history and keeps the disabled state current, preventing older permissions from resuming. Already inactive produces no card or new version; running or sent work is not cancelled.
Requires policy:read/write and current Owner/module authority. Invalid, stale, unsupported, unconfigured or inaccessible selections fail without persistence. After confirmation or uncertainty, read get_policy and get_policy_history; do not retry confirmation.
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": {
"moduleKey": "<moduleKey>",
"policyKey": "<policyKey>",
"expectedRevision": "<expectedRevision>"
},
"name": "deactivate_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| moduleKey | Yes | Policy module key from the same supported get_policy_write_options result as policyKey and expectedRevision; never a tenant selector. | |
| policyKey | Yes | Exact editable policy key from the same get_policy_write_options element as moduleKey and expectedRevision, with canDeactivate=true. Other policies and templates are unsupported. | |
| expectedRevision | Yes | Opaque hash of the current complete state from that result, not a proposed-value hash or numeric history version. Stale state requires a fresh read and renewed intent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | Yes | Validated explicit replacement during a preview; null during discovery. This value has not been saved. | |
| title | Yes | ||
| before | Yes | Native current value, null when unconfigured. Read failures are errors, not empty configuration. | |
| effect | Yes | ||
| status | Yes | Unpersisted human preview, or an attested current disabled value with no card or new version. | |
| proposed | No | Optional native adapter guidance, possibly null; never requested intent or approval. | |
| tenantId | Yes | Workspace already bound by the current grant, never a selectable destination. | |
| moduleKey | Yes | Policy module key from the same supported get_policy_write_options result as policyKey and expectedRevision; never a tenant selector. | |
| policyKey | Yes | Existing editable policy identifier from that same result; arbitrary new identities and templates are unsupported. | |
| nextAction | No | Existing private human-card continuation. Does not itself apply the value. | |
| displayAfter | No | ||
| settingsPath | Yes | ||
| writesPolicy | Yes | ||
| canDeactivate | Yes | True only when this native settings contract defines a safe disabled value. Use deactivate_policy for an explicitly requested stop; unconfigured policies still have nothing to deactivate. Other policy values and templates have no generic delete or enabled-field fallback. | |
| displayBefore | No | ||
| currentVersion | Yes | Current verified numeric policy version, or null when unconfigured; not the write revision. | |
| activatesPolicy | Yes | ||
| expectedRevision | Yes | Opaque hash of the current complete state from that result, not a proposed-value hash or numeric history version. Stale state requires a fresh read and renewed intent. |