leave
Unsubscribe an agent from #channels; when the last member exits, the channel is removed from the swarm directory.
Instructions
Unsubscribe from #channels. When the last subscribed member leaves a #channel, the channel is removed from the swarm directory.
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": {
"agent": "<agent>",
"channels": "<channels>"
},
"name": "leave"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | Your agent handle (without leading '@'), e.g. 'lead', 'api', or 'db'. | |
| channels | Yes | Channels to unsubscribe from (each prefixed with '#'). |