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
| Name | Type | Description |
|---|---|---|
microvm_id required | string | The unique ID of the MicroVM. |
path required | string | The absolute path of the file inside the workload container. |
mode | string | The octal permission bits for the file, from 0001 to 0777. Defaults to 0644.… |
uid | integer | The owner user ID. Set it together with gid. Defaults to the workload… |
gid | integer | The owner group ID. Set it together with uid. Defaults to the workload… |
sha256 | string | The 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:
{
"name": "digitalocean_api__microvms_upload_file",
"arguments": {
"microvm_id": "…",
"path": "…"
}
}Or connect the DigitalOcean API server directly, which lists 874 tools including this one:
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 ….