Invoke function
invoke_functionRun a function (also private ones and those not exposed over HTTP, whose input is the body): mode "test" runs the draft (?test), "live" the published version. Returns status, headers, body and (test mode) console output. Counts as a normal request (logged, uses Run credits).
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": {
"project": "<project>",
"function": "<function>"
},
"name": "invoke_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Raw body (JSON text for JSON APIs) | |
| mode | No | test | |
| query | No | ||
| method | No | Defaults to the function's method | |
| headers | No | ||
| project | Yes | Project id (p…) or address (slug) | |
| subpath | No | ||
| function | Yes | Function name (e.g. "orders") or id (e…) |