Read a lambda's logs
read_logsWhat a deployed lambda has been doing: its recent requests and how they were answered, what it printed, the errors it threw with their stack traces, and how much traffic it has had in the last hour and day. With feature, what that feature's preview has been doing instead, kept apart from the lambda's visitors. Call it after deploying to see that it works, and first when something is reported broken.
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": {
"privateKey": "<privateKey>"
},
"name": "read_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | The lowest level worth reading: 'info' for everything, 'warn' for problems, 'error' for failures. | info |
| limit | No | At most this many lines, the newest. | |
| since | No | The cursor a previous call answered with, to read only what is new since then. | |
| feature | No | Read what this feature's preview did instead. | |
| privateKey | Yes | The editor key, or the key of a demo. |