get_runtime_logs
Retrieve a running app's runtime logs to inspect its output, filter for errors or matching text, and fetch only newer log lines using a cursor.
Instructions
Logs of the running app (its own output, not the build): latest deployment by default. search keeps lines containing a text; errors_only keeps error-looking lines. Pass the returned cursor as after_id to get only newer lines.
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": {
"project_id": "<project_id>"
},
"name": "get_runtime_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No | ||
| after_id | No | ||
| max_lines | No | ||
| project_id | Yes | ||
| errors_only | No | ||
| deployment_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |