skypilot_managed_job_logs
Retrieve a snapshot of logs from a SkyPilot managed job by name or job ID to inspect status and debug failures. Returns last N lines or all logs without streaming.
Instructions
Get a snapshot of logs from a managed job. Returns the last N lines (default 100, set to 0 for all). Does not stream/follow. Specify by name or job_id. Set controller=True to view the jobs controller logs instead. Set task to view logs for a specific task in a JobGroup (task name or 0-based index).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "skypilot_managed_job_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| tail | No | ||
| task | No | ||
| job_id | No | ||
| refresh | No | ||
| controller | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |