Run a custom function
run_functionEnqueue a run of a sandboxed user function in the caller's workspace. Pass 'function_id' and an 'input' object (validated against the function's input_schema). Returns { run_id, status } — the run executes OFF the request path in the Deno sandbox; poll get_function_run until the status is terminal (ok/error/timeout). Fair-use limited by the plan's functions_runs_month allowance — over the limit it returns {status:'refused', ...} and enqueues nothing. Only the caller's own enabled function is runnable. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
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": {
"function_id": "<function_id>"
},
"name": "run_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | ||
| function_id | Yes |