Upload a project to deploy
create_source_uploadFor clients that can run shell commands on the user's machine (Claude Code): deploys the project in the current directory. Returns one command; run it unchanged from the project's root. It packs the directory (leaving out .git, dependency and build-output directories and .env files), uploads it and starts the build, printing JSON with a build_id to pass to wait_for_build. A new name creates the app; an existing app gets a new build. Up to 100 MiB. The upload link works once, for 10 minutes. No nimbus CLI or extra sign-in is needed. What deploys: a server that listens on the PORT environment variable on all interfaces (0.0.0.0); or a static site, which is files in a publish directory with an index.html; a Dockerfile at the root decides the build when there is one. Files an app writes to its own disk are lost on every deploy and restart. Data to keep goes on a volume: the volume argument on a deploy, or add_volume for a deployed app. For an app whose data is a SQLite file, call add_sqlite_database once the app is deployed: it keeps the file on a volume and backs it up. A volume costs money, so give the user its price and ask first. Without a shell, use deploy_source. Creates or changes a running app: confirm with the user first.
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": {
"name": "<name>"
},
"name": "create_source_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Non-secret variables for the app (NODE_ENV and the like). Secrets are refused here: set them with set_env and secret: true, or in the console. | |
| name | Yes | The app's name: lowercase letters, digits and hyphens. A new name creates the app; an existing app of this organization gets a new build. | |
| volume | No | Only for an app that must keep data it writes to disk, and only after the user agreed to its price (detect_source gives it): a volume created and mounted at mount_path before the app first starts. An app that already has a volume at that path keeps it. Not for a static site. Keep an app that writes a SQLite file at one instance. | |
| static_publish_dir | No | For a static site: the directory to publish (dist, public, ...). Leave it out to let the platform choose. |