wait_and_download
Poll conversion status until completed or failed, then download the markdown file to a specified directory.
Instructions
Poll get_status until completed/failed/cancelled, then download markdown if available.
Args: timeout_sec: Max seconds to wait (OCR can take many minutes). poll_interval_sec: Sleep between polls (default 3). output_dir: Where to write the .md file. source_path: Optional original file path (used only for output filename).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_dir | No | promptready-out | |
| source_path | No | ||
| timeout_sec | No | ||
| poll_interval_sec | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |