Run a handler of an app
call_appRuns one query, mutation or action of a deployed app and returns its result and the log lines it wrote, so you can test what you deployed. It runs as the connected person (as: "me", the default), never as anyone else; as: "guest" runs it as a guest visitor and only works on public apps. On a preview deployed without an account every call runs as one guest. Mutations and actions change real data. Only for apps the person owns or administers.
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": {
"kind": "<kind>",
"name": "<name>"
},
"name": "call_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | Who the handler sees in ctx.auth. Default "me". | |
| app | No | The app's slug: the first label of its address (my-app for https://my-app.fuast.com). list_apps shows the slugs you can use. | |
| args | No | Arguments: an array of positional values, or one object for handlers that take an object (tool handlers). Default: no arguments. | |
| kind | Yes | Which kind of handler name is. | |
| name | Yes | Handler name as declared in server/index.ts. | |
| edit_token | No | The edit_token deploy_app returned when it deployed a preview without an account. It is a secret: keep it in this conversation only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| logs | No | ||
| name | Yes | ||
| slug | No | ||
| ran_as | Yes | ||
| result | No | ||
| truncated | No | ||
| duration_ms | No |