hostodo_create_artifact_upload
Generate a presigned upload URL to transfer a file to a Hostodo VPS for later installation. Requires file details and a purpose category.
Instructions
Create an upload slot for transferring a file to a Hostodo VPS. Returns a presigned PUT URL valid for 15 minutes. After uploading, use hostodo_install_artifact to install the file to the VM filesystem. Requires vms:exec scope and mcp_exec_enabled on the target VM.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"vm_id": "<vm_id>",
"filename": "<filename>",
"size_bytes": "<size_bytes>",
"sha256": "<sha256>",
"purpose": "<purpose>"
},
"name": "hostodo_create_artifact_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm_id | Yes | Hostodo instance id, hostname, or unique prefix. | |
| sha256 | Yes | SHA-256 hash of the file content (64 hex characters). | |
| purpose | Yes | Purpose category. 'file' allows up to 256MB, 'config' up to 1MB, 'script' up to 5MB. | |
| filename | Yes | Filename for the artifact. Must be alphanumeric with dots, dashes, underscores. Max 200 characters. | |
| size_bytes | Yes | Exact size of the file in bytes. |