transloadit_wait_for_assembly
Monitors Transloadit assembly processing until completion or timeout, providing status updates for media encoding and file conversion tasks.
Instructions
Polls until the Assembly completes or timeout is reached.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assembly_url | No | ||
| assembly_id | No | ||
| timeout_ms | No | ||
| poll_interval_ms | No |
Implementation Reference
- The handler implementation for the transloadit_wait_for_assembly tool.
async ({ assembly_url, assembly_id, timeout_ms, poll_interval_ms }, extra) => { const access = resolveAssemblyAccess(options, extra, { assembly_url, assembly_id }) if ('error' in access) return access.error const start = Date.now() const assembly = await access.client.awaitAssemblyCompletion(access.assemblyId, { timeout: timeout_ms, interval: poll_interval_ms, assemblyUrl: access.assemblyUrl, }) const waited_ms = Date.now() - start return buildToolResponse({ status: 'ok', assembly, waited_ms, }) - packages/mcp-server/src/server.ts:926-933 (registration)Registration of the transloadit_wait_for_assembly tool.
server.registerTool( 'transloadit_wait_for_assembly', { title: 'Wait for Assembly completion', description: 'Polls until the Assembly completes or timeout is reached.', inputSchema: waitForAssemblyInputSchema, outputSchema: waitForAssemblyOutputSchema, },