Deploy a function
deploy_functionPut a function's current code live: from then on the LIVE site's address /api/sites/{site_id}/fn/{name} runs this code for every visitor or form that calls it, with the function's env vars and data access. It takes effect immediately, without a publish. Only deploy code the owner has reviewed; a draft with no code is refused.
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": {
"site_id": "<site_id>",
"function": "<function>"
},
"name": "deploy_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The site, from list_sites | |
| function | Yes | The function's name (slug), display name or id, from list_functions | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. |