Stop session
stop_sessionStop a running session with a summary and outcome, when the user says they are done or finished. Pass session_id from get_now; without it, only this connection's single running session is stopped, never another one. The timer keeps running for other sessions. outcome=done completes the linked plan item or path step. Without end_at or op_id it refuses a session that already ended: use edit_session for that. With end_at (apps delivering a stop queued offline) a second stop on the same session is merged, whatever order they arrive in: the earliest end wins, done wins over any other outcome, the first summary stays and a different later one goes to the notes; the answer says applied: ended | shortened | recorded.
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": {
"summary": "<summary>",
"outcome": "<outcome>"
},
"name": "stop_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op_id | No | for apps replaying queued requests: an id the app minted before its first attempt and reuses on retries, so the write is applied once and a retry gets the first answer back. Do not invent one; an agent calling interactively leaves it out | |
| end_at | No | when the work ended as ISO 8601 with offset, e.g. 2026-10-20T14:05:00+02:00. For apps delivering a request queued offline; an agent calling interactively leaves it out. Rejected before the session start; a clock more than 2 minutes ahead of the server is taken as now | |
| outcome | Yes | ||
| summary | Yes | ||
| wip_text | No | your own WIP todo text for this work, when the summary would not read well on WIP. Used only on a project marked public and for finished work (a session ending done, or a move); still posted 10 minutes later unless the user cancels | |
| session_id | No | from get_now; required with op_id or end_at | |
| attention_share | No | corrects the share in hindsight |