INNER CODE UNIT · Python

kill_sandbox

deeplethe/forkd · sdk/mcp/sandstorm_mcp/server.py:316

def kill_sandbox(sandbox_id: str) -> dict[str, Any]:
    """Delete one sandbox, on whichever tier it is."""
    with _client() as c:
        r = c.delete(f"/v1/sandboxes/{sandbox_id}")
        r.raise_for_status()
        return {"id": sandbox_id, "killed": True}


@mcp.tool()
def exec_command(
    sandbox_id: str,
    args: list[str],
    timeout_secs: int = 30,
    sandbox_token: str | None = None,
) -> dict[str, Any]:
    """Run a subprocess inside a sandbox.

    Example:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…