leave_session
Exit an active collaboration session cleanly as an individual agent when tasks are complete or requested, optionally providing a reason for other participants.
Instructions
Leave a collaboration session gracefully. Clean exit for an agent.
AUTOMATIC TRIGGERS - Call this when:
Your assigned tasks are complete
You're done with this session and moving to other work
User asks you to leave the session
DIFFERENCE from terminate_session: This is for individual agents leaving. Only the orchestrator should call terminate_session to end the entire session.
PARAMETERS:
session_id: Session to leave
agent_id: Your agent ID
reason: Optional reason for leaving (helps other agents understand)
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>",
"agent_id": "<agent_id>"
},
"name": "leave_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | ||
| agent_id | Yes | ||
| session_id | Yes |