Edge function logs
functions.logsRecent log lines of one edge function. Scope: logs:read.
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": {
"name": "<name>"
},
"name": "functions.logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Function name | |
| limit | No | Lines to return (default 100) | |
| branch | No | Branch (environment) id. Optional: defaults to `production`. | |
| project_id | No | Project id. Optional: defaults to the project created or used last in this session, or the only one. | |
| organization_id | No | Organization id. Optional: defaults to the token's organization, or the only one you belong to. |