End Agent Sandbox
end_agent_sandboxEnd a sandbox session: submit preserves the fork for human review and merge, while discard deletes the fork and all changes. Merging is a human decision.
Instructions
End the sandbox session. action='submit' keeps the fork for human review and merge (at /cm/forks/{id}); action='discard' permanently deletes the fork and all its changes. Agents cannot merge their own sandbox — merging is a human decision.
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": {
"action": "<action>"
},
"name": "end_agent_sandbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | 'submit' keeps the fork and hands it to a human for review/merge; 'discard' deletes the fork and every change in it. |