getPipelineStepLogs
Retrieve logs from a specific Bitbucket Pipeline step. Filter by line count, search terms, or error keywords to troubleshoot build issues.
Instructions
Get logs for a specific pipeline step
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | Bitbucket workspace name | |
| repo_slug | Yes | Repository slug | |
| pipeline_uuid | Yes | Pipeline UUID | |
| step_uuid | Yes | Step UUID | |
| max_lines | No | Maximum number of log lines to return (default 500) | |
| tail | No | When true, returns the most recent lines instead of the first lines | |
| errors_only | No | When true, only include lines that look like errors (case-insensitive match on error keywords) | |
| search_term | No | Optional case-insensitive search term to filter log lines | |
| save_to_file | No | Save the full log to a temporary file and return the path for offline review |