threads_hide_reply
Hide a reply on your Threads post to manage content visibility while keeping it accessible via direct link.
Instructions
Hide a reply on your Threads post. Hidden replies are still visible if directly accessed.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reply_id | Yes | Reply ID to hide |
Implementation Reference
- src/tools/threads/replies.ts:78-93 (handler)The threads_hide_reply tool is defined and registered within the `registerThreadsReplyTools` function. It takes a `reply_id` and calls the `client.threads` service to hide the reply.
// ─── threads_hide_reply ────────────────────────────────────── server.tool( "threads_hide_reply", "Hide a reply on your Threads post. Hidden replies are still visible if directly accessed.", { reply_id: z.string().describe("Reply ID to hide"), }, async ({ reply_id }) => { try { const { data, rateLimit } = await client.threads("POST", `/${reply_id}/manage_reply`, { hide: true }); return { content: [{ type: "text", text: JSON.stringify({ success: true, hidden: true, ...data as object, _rateLimit: rateLimit }, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Hide reply failed: ${error instanceof Error ? error.message : String(error)}` }], isError: true }; } } );