Wait For Video
wait_for_videoPoll a Kenari video job until it finishes, then download the rendered file. If timeout occurs, returns still_rendering so you can continue waiting.
Instructions
Poll GET /v1/videos/{id} every 5s (backoff cap 15s) until done/failed/expired or timeout (default 20 min). Auto-downloads when done. Timeout returns still_rendering with isError=false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Kenari video job id returned by create_video or extend_video. | |
| download | No | When true (default), auto-download the finished video to KENARI_OUTPUT_DIR and return its absolute path. | |
| timeout_ms | No | Maximum time to keep polling in milliseconds (>= 1000). Defaults to 1200000 (20 min). On timeout returns still_rendering (not an error) — call again. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Kenari video job id, when relevant to the result or error. | |
| op | No | Tool operation name the error occurred in. | |
| code | No | Machine-readable code: an error code (e.g. unauthorized, bad_request, upstream_error) or a state marker (e.g. rendering, done, still_rendering). | |
| hint | No | Human-readable remediation hint (e.g. set KENARI_API_KEY). | |
| paths | No | Absolute local paths of downloaded video files (when done and downloaded). | |
| status | No | HTTP status number (on API errors) or the Kenari job status string (on video status results). | |
| disabled | No | True when video tools are disabled via KENARI_ALLOW_VIDEO=0. |