get_task_logs
Retrieve stdout/stderr logs for a specific task by pathspec. Filter logs with tail, head, or regex pattern to find specific output.
Instructions
Get stdout/stderr logs for a specific task.
Args: pathspec: Task pathspec like "FlowName/RunID/StepName/TaskID". stdout: Include stdout (default true). stderr: Include stderr (default true). tail: Return only the last N lines of each log. head: Return only the first N lines of each log (ignored if tail is set). pattern: Regex pattern -- return only lines matching this pattern.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pathspec | Yes | ||
| stdout | No | ||
| stderr | No | ||
| tail | No | ||
| head | No | ||
| pattern | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |