deploy_files
Publish in-memory file contents to a Hostsmith site without writing to disk. Returns deployment version and status.
Instructions
Publish in-memory file contents to a Hostsmith site without writing to disk. Use when you have just generated content (an HTML page, a report, JSON data) and the user wants it live. Returns the deployment version and status; call get_site afterwards if you need the public URL to share. The site must already exist - call create_site first if you do not have a siteId. Deploying to a site that already has content overwrites it - confirm overwrite with the user first.
Anti-pattern: do not use this tool to ship binaries (images, PDFs, video, fonts, zips) by base64-embedding or data-URI inlining them into HTML/CSS/JSON. Binaries belong on deploy_create_upload. If that path is blocked by sandbox/network, escalate to the user (ask them to enable egress, or offer manual upload of the presigned URL) - never reach for this tool as a workaround. Inlining bloats pages, breaks browser caching, and reships the bytes on every deploy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | The site ID to deploy to (from `list_sites` or `create_site`). | |
| files | Yes | Files to deploy. For an HTML site, include an `index.html` as the entry point; otherwise any single file (PDF, image, JSON, etc.) works on its own. | |
| partition | No | Data partition the site lives in. Omit to use the user's home partition. |