skypilot_pool_logs
Retrieve log snapshots from a SkyPilot worker pool, targeting controller, load balancer, or replica by worker ID. Specify line count to inspect recent activity.
Instructions
Get a snapshot of logs from a worker pool. Target can be 'controller', 'load_balancer', or 'replica'. Optionally specify a worker_id. Returns the last N lines (default 100, set to 0 for all). Does not stream/follow.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pool_name": "<pool_name>"
},
"name": "skypilot_pool_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | ||
| target | No | controller | |
| pool_name | Yes | ||
| worker_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |