read audio preparation
audio-trims_getPoll an audio trim by ID to monitor its progress until completion or failure, then retrieve the resulting asset ID, actual duration, error code, or retry wait time.
Instructions
Read one audio trim by the id audio-trims_create returned, to follow it until it ends; jobs_get and jobs_wait do not read audio trims. Returns its status; once completed, the assetId (the same value as this id) and actual durationSeconds of the new shortened audio asset, both null before; once failed, its errorCode; and retryAfterMs, the wait before the next read.
While it is queued or processing, call again after retryAfterMs milliseconds; never create another trim. When completed, use the new assetId and its actual duration in place of the original audio. If it failed, tell the user the errorCode; another trim needs an explicit new attempt with audio-trims_create. An API error returns {error: {message, status, code when given}} instead. It never starts video generation or spends credits.
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": "audio-trims_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The id that audio-trims_create returned (a UUID). Poll with this same id until the trim is completed or failed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||