kill_sandbox
Terminate an E2B sandbox by its ID to free up resources and stop ongoing processes. Provide the sandbox ID to safely shut it down.
Instructions
Kill an E2B sandbox by its ID.
Args:
sandbox_id: The ID of the sandbox to kill
Returns:
JSON string containing error message if failed, empty string if successful
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": {
"sandbox_id": "<sandbox_id>"
},
"name": "kill_sandbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sandbox_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |