agent_session_end
End or update an agent session by setting its status to completed, paused, stalled, or abandoned; completed and abandoned runs are timestamped with ended_at.
Instructions
End or update an agent session's status. Use status='completed' when the goal is met, 'paused' to suspend (resume later from the checkpoint), 'stalled' when the vibe-loop stall detector trips, or 'abandoned' to drop the run. Setting completed/abandoned stamps ended_at.
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": {
"session_id": "<session_id>",
"status": "<status>"
},
"name": "agent_session_end"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | Optionally revise the goal | |
| status | Yes | New session status | |
| metadata | No | Metadata to merge into the session | |
| session_id | Yes | Session id to update |