Sandboxes (extension)

list_sandboxes

List launched code sandboxes that can be used as alternatives to kernels.

List launched code sandboxes that can be used as alternatives to kernels.

read-only: yes

Parameters

This tool takes no parameters.

Output

{
  "properties": {
    "result": {
      "description": "All launched sandboxes with name, variant, status, and active flag",
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "title": "Result",
      "type": "array"
    }
  },
  "required": [
    "result"
  ],
  "title": "list_sandboxesOutput",
  "type": "object"
}

Call it

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_sandboxes",
    "arguments": {}
  }
}
result = await session.call_tool("list_sandboxes", arguments={})

Source

Registered by the @mcp.tool decorator on list_sandboxes in ext/sandboxes/jupyter_mcp_sandboxes/extension.py.