nasc_end
Closes the caller's own NASC session and writes its digest, including the handoff the next start reads. Digest fields are optional; synthesis writes what is absent. This tool closes a session only for its owner or a platform administrator; a continuity token or alias locates a session but does not prove ownership, and a session with an unresolved owner stays open. soft=true closes without a digest, which suits stale or trivial sessions. Closing a session that already has its full digest changes nothing. A managed Window full close reports capture_status=final_pending and final_capture_receipt=false until its final exchange is acknowledged; transcript_captured only indicates whether earlier transcript data was already stored. On Codex Desktop and Codex CLI a close with no session_id and no continuity_token returns a queued handoff receipt; digest fields remain optional. A successful close returns structured JSON, then a Markdown receipt that begins NASC SESSION ENDING (pending) or NASC SESSION ENDED. Another person's stale session is closed by an organization administrator with session_cleanup.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "nasc_end"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | Optional host platform as passed to nasc_start, inferred from the MCP client when omitted. On codex_desktop or codex_cli an unkeyed full close returns a queued handoff receipt. | |
| next | No | ||
| soft | No | Ends the exact session with no digest, changelog entry or wiki snapshot; digest fields are ignored. Requires session_id under session keying. | |
| tldr | No | Optional one-line handoff, 200 characters or less. | |
| brain | No | Optional target org (brain uuid). Ignored unless this account can already access it; it never grants access. | |
| project | No | Project slug. | |
| summary | No | Optional. What this session did. | |
| rejected | No | ||
| resolved | No | Optional decision keys (decision:<id>) this session finished; each is marked done when this session or its person holds the claim. Ignored on soft=true, which only parks. Other items this session was carrying in doing are parked, not closed. | |
| bugs_fixed | No | ||
| bugs_found | No | ||
| notify_who | No | ||
| session_id | No | Optional session to close, from nasc_start; only its turns join the digest. | |
| source_uri | No | Source conversation URI or id, when known. | |
| fields_sent | No | Optional comma-separated names of the arguments this call carries. | |
| files_changed | No | ||
| decisions_made | No | ||
| source_platform | No | Platform the content came from. | |
| context_for_next | No | Optional handoff the next session inherits. | |
| continuity_token | No | Optional host conversation id. Resolves the active session and pins this call's authorization, org and project to it. | |
| capture_terminal_id | No | Transcript ingester only. | |
| require_exact_digest_replay | No | Optional strict idempotency check for Scribe. When true, supplied nonblank summary, context_for_next and tldr must match the stored digest exactly. Grants no authority. |