Call an app function
call_functionExecute an app-declared function to exchange data without UI; validate arguments, allow outbound requests, and return results plus write receipts.
Instructions
Run a function an app declares (manifest.functions) — data in, data out, no UI needed. The body is code the app's author wrote and it may make outbound network requests (a host may route them through an allowlisted gateway). Args are checked against the declared params; failures return the declared schema so the retry needs no extra read. The reply carries the return value plus a receipt per write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | ||
| args | No | ||
| actor | No | ||
| function | Yes | ||
| command_id | Yes | idempotency key — generate a fresh uuid per action |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| eot | No | ||
| note | No | ||
| reason | No | ||
| result | No | ||
| writes | No | ||
| available | No | ||
| violations | No |