Home / Servers / DigitalOcean API / harness_create_session_workspace_upload

Upload a file or tar archive into the session's sandbox workspace.

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

Upload a file or tar archive into the session's sandbox workspace. Streams the raw request body to a path inside the sandbox workspace. Concurrent transfers (upload + download) are capped server-side; over the cap the request blocks and may return 503. The optional… [POST /v2/agents/sessions/{session_id}/workspace/upload]

Name on the gateway: digitalocean_api__harness_create_session_workspace_upload · may change things.

Parameters

NameTypeDescription
session_id requiredstringThe session UUID.
path requiredstringDestination path inside the sandbox workspace. Relative paths resolve under…
is_archivebooleanIf true, the body is a tar stream that the guest extracts under path. Defaults…

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_create_session_workspace_upload",
  "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 upload a file or tar archive into the session's sandbox workspace. tool with session_id set to ….

More from DigitalOcean API