Create a deployment
deployments_createCreate a deployment (blank, from a public GitHub repo, or a template), or a database by passing its engine as runtime. Sized by default to an equal share of the free pool; the result tells you the RAM/CPU it got. A modern web stack needs 512+ MB to npm install (exit 137 = OOM): deployments.resize BEFORE the first start.
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>",
"source": "<source>"
},
"name": "deployments_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment variables to set on the new deployment. For a template, these fill its declared variables. | |
| name | Yes | ||
| ramMB | No | Omit for the default share of the free pool. | |
| branch | No | Omit to use the repository's default branch (main, master, or whatever it is). | |
| cpuPct | No | Percent of one core. 15 makes an npm install take minutes. | |
| source | Yes | ||
| runtime | No | The stack to run. A database engine here (mysql, postgresql, redis, mongodb) creates a DATABASE deployment, which takes source: "blank" and no repository. | |
| projectId | No | Existing project id. OMIT THIS to use your default project - do not invent one. | |
| storageMB | No | ||
| githubRepo | No | "owner/repo" or the GitHub URL of a public repository. | |
| templateId | No | ||
| runtimeVersion | No | Runtime version as a string, e.g. "24"; a bare number is accepted too. |