Stop session
stop_sessionEnd a running session to release in-flight units with their checkpoints, classify it as resumable, waiting, blocked, or completed, and receive the final report. Optionally mark it as failed.
Instructions
End the current run. In-flight units are released with their checkpoints and the session is classified (resumable, waiting_for_human, blocked or completed). markFailed: true ends it permanently as failed. Returns the final report.
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": {
"sessionId": "<sessionId>",
"reason": "<reason>"
},
"name": "stop_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Handoff notes for whoever resumes. | |
| reason | Yes | ||
| sessionId | Yes | Session handle returned by start_session. | |
| markFailed | No | End the session permanently as failed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| report | Yes | ||
| session | Yes |