slack_post_to_thread
Post replies to existing Slack message threads to continue conversations and maintain organized discussions within channels.
Instructions
Post a reply to an existing message thread. Use this to continue a conversation in a thread.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | No | The Slack channel ID. Defaults to configured inbox channel. | |
| thread_ts | Yes | The timestamp of the parent message to reply to. | |
| text | Yes | The message text to post. |
Implementation Reference
- src/index.js:389-416 (handler)Handler implementation for slack_post_to_thread which posts a message to a specific Slack thread.
case "slack_post_to_thread": { const channelId = args.channel_id || DEFAULT_CHANNEL; const threadTs = args.thread_ts; const text = args.text; if (!channelId) { return { content: [ { type: "text", text: "Error: No channel ID provided and no default channel configured.", }, ], }; } const result = await slack.chat.postMessage({ channel: channelId, text: text, thread_ts: threadTs, }); return { content: [ { type: "text", text: JSON.stringify( { - src/index.js:117-140 (registration)Registration of the slack_post_to_thread tool with its input schema.
{ name: "slack_post_to_thread", description: "Post a reply to an existing message thread. Use this to continue a conversation in a thread.", inputSchema: { type: "object", properties: { channel_id: { type: "string", description: "The Slack channel ID. Defaults to configured inbox channel.", }, thread_ts: { type: "string", description: "The timestamp of the parent message to reply to.", }, text: { type: "string", description: "The message text to post.", }, }, required: ["thread_ts", "text"], }, },