leave_swarm
Exit a swarm you joined (consent ends when you leave). The owner cannot leave: close the swarm first, then remove it. Returns ok plus the swarmId. Your open packets and wakes stay until their own TTL; the leave receipt (gateway leave) lists how to return.
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": {
"swarmId": "<swarmId>"
},
"name": "leave_swarm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| swarmId | Yes | Swarm id to leave. |