deploy_functions
Deploy a project's Function code bundle. Project-level, not per-Function — one zip holds every handler for the project, so the name is plural.
Upload the zip first with upload_file, then pass the file id here. The zip's own layout is preserved verbatim, so handler dotted paths point into it directly: a handler of 'orders.before.validate' needs orders/before.py in the zip. Dependencies must be vendored into the zip (pip install -r requirements.txt -t .) — the platform does not run pip on customer input.
Returns immediately with status 'deploying'. Poll list_deployments to see it settle to 'ready' or 'failed'. Rolling back is this same call with an earlier file id.
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": {
"code_file_id": "<code_file_id>"
},
"name": "deploy_functions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | Project whose runner to deploy to. Get it from whoami or list_projects. | |
| code_file_id | Yes | File record ID from upload_file (e.g. 'FIL42'). |