get_build_logs
Retrieve build logs from Codemagic to diagnose why a build failed. Get logs for failed steps by default, or specify a step name for specific logs.
Instructions
Fetch logs for a Codemagic build. By default returns logs for failed steps only — the primary use case is diagnosing why a build failed. Pass step_name to fetch logs for a specific step regardless of status (e.g. 'building_ios', 'testing', 'publishing'). Always returns the step list with statuses first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| build_id | Yes | The Codemagic build ID | |
| step_name | No | Fetch logs for this specific step name only. If omitted, logs are fetched for failed steps (or none if the build succeeded). |