get_flow_run_logs
Retrieve execution logs from a Prefect flow run to view timestamps, log levels, and messages for debugging and monitoring.
Instructions
Get execution logs for a flow run.
Retrieves log entries from the flow run execution, including timestamps, log levels, and messages.
Examples: - Get logs: get_flow_run_logs(flow_run_id="...") - Get more logs: get_flow_run_logs(flow_run_id="...", limit=500)
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": {
"flow_run_id": "<flow_run_id>"
},
"name": "get_flow_run_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of log entries to return | |
| flow_run_id | Yes | UUID of the flow run to get logs for | |
| workspace_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logs | Yes | ||
| error | Yes | ||
| limit | Yes | ||
| success | Yes | ||
| truncated | Yes | ||
| flow_run_id | Yes |