nasc_session_cleanup
Organization admin cleanup of stale exact sessions; nasc_end stays self-only. get_policy reads the role threshold; set_policy (owner only) sets disabled or a minimum role. preview takes exact session ids, checks role, age, turns, lifecycle and presence, and returns a short-lived receipt. execute takes only that receipt, rechecks every target in one transaction, soft-closes them with no digest or handoff, writes an audit receipt and notifies each affected operator. Guests and cross-organization grants never have session authority. override_min_age with override_reason lets a platform superadmin bypass only the age gate.
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": {
"action": "<action>"
},
"name": "nasc_session_cleanup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brain | No | Optional target org (brain uuid). Ignored unless this account can already access it; it never grants access. | |
| action | Yes | ||
| min_role | No | set_policy: minimum direct role, or disabled. | |
| session_id | No | Optional session id from nasc_start. Pins this call's authorization, org and project to that session. | |
| session_ids | No | preview: exact session UUIDs. Cleanup never searches by age, platform, name or project. | |
| override_reason | No | preview: human-authorized reason, kept in the audit receipt. | |
| continuity_token | No | Optional host conversation id. Resolves the active session and pins this call's authorization, org and project to it. | |
| override_min_age | No | preview: superadmin age-gate override; requires override_reason. Other checks remain. | |
| preview_receipt_id | No | execute: unexpired receipt from preview. |