Wait for Audio Project
wait_for_audio_projectPolls an audio project until it completes, errors, is canceled or times out. Use with the id returned by an audio create tool. Read-only; returns the project and download URLs, with optional inline audio previews sharing an 8 MiB total limit. After a timeout, resume with the same id rather than creating another generation. Use signed download URLs exactly as returned.
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": {
"id": "<id>"
},
"name": "wait_for_audio_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Existing project ID returned by the matching creation tool. Reuse this ID after a wait timeout. | |
| timeout_seconds | No | Maximum seconds for this wait call, finite and greater than zero. Timeout does not cancel the project or start another generation. | |
| max_inline_downloads | No | Maximum number of previews to include. Zero or negative disables previews; previews share an 8 MiB total limit. | |
| poll_interval_seconds | No | Seconds between status checks. Must be finite and nonnegative; values below 0.5 use 0.5 seconds. | |
| max_bytes_per_download | No | Positive maximum raw bytes per preview, capped by the remaining 8 MiB total budget. Larger outputs remain available by URL. | |
| include_inline_downloads | No | Whether to include image or audio previews for completed projects. Download URLs remain available if preview fetching fails. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Existing project identifier, retained for subsequent status checks. | |
| status | No | Project status such as complete, error or canceled; timeout means only this wait call ended. | |
| message | No | Wait timeout or recovery guidance, when present. | |
| downloads | No | Available output files with exact signed URLs. May be absent until completion. | |
| last_project | No | Last observed API project snapshot if the wait timed out after a successful status check. | |
| project_type | Yes | Kind of project being retrieved. | |
| exact_download_urls | No | Convenience list of the same unmodified signed output URLs. | |
| download_expiration_metadata | No | Expiration metadata only. Never append it to a download URL. |