scalix_fn_deploy
Deploy a Scalix Function — serverless, per-request billed, running in isolated microVMs — from a container image. Invoke it with scalix_fn_invoke once deployed. A WEB APP needs the raw HTTPS handler: pass invocation_mode="http" so the function URL https://{name}.fn.{domain} proxies each request — method, path, query, headers, body — straight to the app's own server on $PORT (the image's ENTRYPOINT is the app). The default "handler" mode runs the platform runner per request and returns the invoke envelope, which no browser can consume.
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>",
"image": "<image>"
},
"name": "scalix_fn_deploy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Function name | |
| image | Yes | Container image reference | |
| region | No | Canonical region id to deploy into (from GET /v1/regions). Omit to use the organization's recorded region preference. | |
| runtime | No | Runtime — `node` or `python` (exactly what the functions orchestrator accepts) | |
| http_trigger | No | true (default) = the function answers on a public HTTPS URL at https://{name}.fn.{domain}; false = internal only, invoked with scalix_fn_invoke (no public URL). | |
| region_pinned | No | true = hard-pin placement to `region`: the deploy fails closed when that region has no capacity instead of placing elsewhere. Requires `region`. | |
| invocation_mode | No | Execution model. `handler` (default) = the platform runner calls your export per request (Lambda model). `http` = the raw HTTPS handler (Cloud Run model): the function's public URL https://{name}.fn.{domain} proxies the request to the image's own server on $PORT — what a web app needs, because the path and method are part of the request and a handler-mode function cannot serve browsers. Requires a container image: the image's ENTRYPOINT is the app. Image boots are gated on the node (SCALIX_RUN_OCI_ENABLED); a node without it answers that image-based functions are disabled. |