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.
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. |