Home / Servers / DigitalOcean API / harness_get_session_workspace_download

Download a file or tar archive from the session's sandbox workspace.

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

Download a file or tar archive from the session's sandbox workspace. Streams the workspace payload back as application/octet-stream using chunked transfer encoding, followed by a fixed integrity footer. Response body layout: + , where the footer is exactly 73 bytes… [GET /v2/agents/sessions/{session_id}/workspace/download]

Name on the gateway: digitalocean_api__harness_get_session_workspace_download · read-only.

Parameters

NameTypeDescription
session_id requiredstringThe session UUID.
path requiredstringSource path inside the sandbox workspace. Relative paths resolve under the…
as_archivebooleanIf true, the guest returns a tar stream of path (e.g. for a directory).…

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_session_workspace_download",
  "arguments": {
    "session_id": "…",
    "path": "…"
  }
}

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 download a file or tar archive from the session's sandbox workspace. tool with session_id set to ….

More from DigitalOcean API