Run a server function on the draft
websiteFunctions_invokeRuns one of the draft site's http server functions with the website's secrets and returns its result, exactly as page code on the draft would receive it. It makes the function's real outgoing requests. Counts toward the plan's monthly calls.
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": {
"websiteId": "<websiteId>",
"name": "<name>"
},
"name": "websiteFunctions_invoke"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | An `http` server function. | |
| payload | No | The handler's first argument, as JSON. | |
| websiteId | Yes |