skypilot_job_logs
Fetch a snapshot of logs from a SkyPilot job on a cluster. Use a job ID or default to the latest job, and set the tail limit to control how many lines return.
Instructions
Get a snapshot of logs from a job running on a cluster. Returns the last N lines (default 100, set to 0 for all). Does not stream/follow logs. If no job_id is provided, returns logs for the latest job.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | ||
| job_id | No | ||
| cluster_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |