create_function
Deploy a function: a command that serves HTTP on a port, scaled from zero by requests to its URL.
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>",
"start": "<start>"
},
"name": "create_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | environment variables by name | |
| name | Yes | function name | |
| port | No | port the command listens on | |
| vcpu | No | vCPUs | |
| files | No | source files to include | |
| start | Yes | command that serves the function | |
| public | No | invokable without a key at /v1/public/functions/{public_id}/invoke | |
| template | No | template id; default the server's first | |
| memory_mb | No | memory in MB | |
| idle_timeout | No | seconds without an invoke before the last replica stops; 0 keeps one warm | |
| max_replicas | No | burst ceiling | |
| replica_concurrency | No | requests one replica serves at once, 1 to 100 |