Sandboxes (extension)
terminate_sandbox
Terminate a launched code sandbox.
Terminate a launched code sandbox.
destructive: yes
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
sandbox_name | string | yes | — | Sandbox name to terminate and unregister |
Output
{
"properties": {
"result": {
"description": "Termination status message",
"title": "Result",
"type": "string"
}
},
"required": [
"result"
],
"title": "terminate_sandboxOutput",
"type": "object"
}Call it
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "terminate_sandbox",
"arguments": {
"sandbox_name": "<sandbox_name>"
}
}
}result = await session.call_tool("terminate_sandbox", arguments={"sandbox_name": "<sandbox_name>"})Source
Registered by the @mcp.tool decorator on terminate_sandbox in ext/sandboxes/jupyter_mcp_sandboxes/extension.py.
