Deploy files
deploy_filesDeploy files you wrote as a live web app. Use when the code is in this conversation and there is no GitHub repository. First call: name + every file; returns app_id, url and the file list. To change the app: the same app_id + only the changed files (merged; other files stay); delete removes paths; replace: true sends the whole app. Limits: 200 files, 256 KB a file, 512 KB a call, text only. What builds: a static site (index.html at the root); a FastAPI app (requirements.txt with fastapi, main.py with app, no index.html at the root); anything else: add a Dockerfile that listens on 0.0.0.0:$PORT and installs dependencies itself (npm install, pip install). Never write a lockfile by hand. Never put secrets in files: call set_app_secret if this connection has the secrets permission, else have the person add them in the Secrets section of the Dockhold dashboard, and read them on the server. Poll get_app_status until RUNNING. Free accounts get a few deploys a day: batch changes into one call; on free_daily_limit, show the person the message and do not retry. Requires the deploy permission.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "deploy_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | A name for a new app (1-64 chars). Required when creating; leave it out to change an app. | |
| files | No | The files to add or replace. Required when creating. | |
| app_id | No | The app to change, from an earlier answer or list_apps (source: files). Omit to create a new app. | |
| delete | No | Update only, not with replace: paths to remove | |
| replace | No | Update only: the listed files become the whole app (default false: they are merged) | |
| memory_mb | No | Create only: compute size in MB, one of the values get_resource_usage reports under compute.steps_mb. Omit to get the minimum slice (256 MB); resize_app changes it later. | |
| with_database | No | Create only: provision a managed Postgres database for the app (default false) |