Home / Servers / DigitalOcean API / harness_get_workspace

Get a persistent workspace.

An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.

Get a persistent workspace. Returns one persistent workspace by its ID, including its state and when its files were last saved. Use it to wait for a workspace to return to AVAILABLE after the session that held it was removed. [GET /v2/agents/workspaces/{workspace_id}]

Name on the gateway: digitalocean_api__harness_get_workspace · read-only.

Parameters

NameTypeDescription
workspace_id requiredstringThe workspace ID. Workspace names are not accepted.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "digitalocean_api__harness_get_workspace",
  "arguments": {
    "workspace_id": "…"
  }
}

Or connect the DigitalOcean API server directly, which lists 874 tools including this one:

Run in your terminal
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the get a persistent workspace. tool with workspace_id set to ….

More from DigitalOcean API