threads_get_container_status
Check the processing status of a Threads media container to monitor upload progress and verify completion.
Instructions
Check the processing status of a Threads media container.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| container_id | Yes | Container ID to check |
Implementation Reference
- src/tools/threads/publishing.ts:202-218 (handler)Registration and handler implementation for the threads_get_container_status tool.
server.tool( "threads_get_container_status", "Check the processing status of a Threads media container.", { container_id: z.string().describe("Container ID to check"), }, async ({ container_id }) => { try { const { data, rateLimit } = await client.threads("GET", `/${container_id}`, { fields: "id,status,error_message", }); return { content: [{ type: "text", text: JSON.stringify({ ...data as object, _rateLimit: rateLimit }, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Get container status failed: ${error instanceof Error ? error.message : String(error)}` }], isError: true }; } } );