threads_get_post
Retrieve specific Threads post details using its ID to access content, metadata, or specified fields from the Meta platform.
Instructions
Get details of a specific Threads post.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_id | Yes | Threads post ID | |
| fields | No | Comma-separated fields |
Implementation Reference
- src/tools/threads/media.ts:36-52 (handler)Handler implementation for the 'threads_get_post' tool.
server.tool( "threads_get_post", "Get details of a specific Threads post.", { post_id: z.string().describe("Threads post ID"), fields: z.string().optional().describe("Comma-separated fields"), }, async ({ post_id, fields }) => { try { const f = fields || "id,media_product_type,media_type,media_url,permalink,text,timestamp,shortcode,is_quote_post,has_replies,reply_audience,topic_tag,link_attachment_url,poll_attachment,gif_attachment,alt_text"; const { data, rateLimit } = await client.threads("GET", `/${post_id}`, { fields: f }); return { content: [{ type: "text", text: JSON.stringify({ ...data as object, _rateLimit: rateLimit }, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Get post failed: ${error instanceof Error ? error.message : String(error)}` }], isError: true }; } } );