agent_stop
Stop a Claude background or tmux session, optionally ending all background sessions or deleting one entirely; reports whether the session was stopped or destroyed.
Instructions
Stop a session. Claude background sessions keep their conversation and can be resumed; a tmux session is destroyed (its transcript on disk survives). Says which one it did.
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": "<session>"
},
"name": "agent_stop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Claude only with session=background: stop every background session | |
| remove | No | Claude only: delete the session entirely instead of stopping it | |
| session | Yes |