Read an app's logs
get_logsReturns recent log entries of an app, oldest first: what its handlers wrote with ctx.log, handler errors with stack traces, and platform events such as deploys. Pass the returned cursor as since to read only newer entries.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| level | No | Lowest level to return. Default info. | |
| limit | No | Most entries to return. Default 50. | |
| since | No | Cursor from an earlier call: only entries after it. | |
| 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 |
|---|---|---|---|
| slug | No | ||
| cursor | Yes | ||
| entries | Yes |