skypilot_stream_and_get
Wait for a SkyPilot request to finish while capturing its streaming logs, returning both result and log output. Use it for long-running operations like launch, exec, or managed job launch.
Instructions
Wait for a SkyPilot request to complete while capturing its log output. Unlike skypilot_get_request (which only returns the final result), this also returns the streaming logs produced during execution — useful for long-running operations like launch, exec, or managed job launch. Returns a JSON object with 'result' and 'logs' fields. Set tail to limit how many trailing log lines are captured (default: all). Set follow=False to return immediately with whatever logs are available. Use log_path instead of request_id to stream from a specific log file on the API server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | ||
| follow | No | ||
| log_path | No | ||
| request_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |