Home / Servers / DigitalOcean API / microvms_upload_file

Upload a file to a MicroVM

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

Upload a file to a MicroVM To write a file into a MicroVM's workload container, send a PUT request to /v2/microvms/{microvm_id}/files?path= with the raw file content as the request body and a Content-Type of… [PUT /v2/microvms/{microvm_id}/files]

Name on the gateway: digitalocean_api__microvms_upload_file · may change things.

Parameters

NameTypeDescription
microvm_id requiredstringThe unique ID of the MicroVM.
path requiredstringThe absolute path of the file inside the workload container.
modestringThe octal permission bits for the file, from 0001 to 0777. Defaults to 0644.…
uidintegerThe owner user ID. Set it together with gid. Defaults to the workload…
gidintegerThe owner group ID. Set it together with uid. Defaults to the workload…
sha256stringThe lowercase hex SHA-256 of the request body. When set, the API verifies the…

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__microvms_upload_file",
  "arguments": {
    "microvm_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 to a microvm tool with microvm_id set to ….

More from DigitalOcean API