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).
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": "wait_and_download"
}
}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 |