discord_create_forum_post
Create a new forum post (thread) in a Discord channel by specifying the channel ID, title, content, and optional tags.
Instructions
Create a new post (thread) in a forum channel.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| forum_channel_id | Yes | ||
| title | Yes | The post title (thread name). | |
| content | Yes | The initial message content of the post. | |
| applied_tags | No | Array of tag IDs to apply to the post. |
Implementation Reference
- src/tools/forums.ts:203-211 (handler)The handler logic for creating a forum post (a new thread) in a Discord forum channel.
case "discord_create_forum_post": { const forum = await getForumChannel(args.forum_channel_id as string); const thread = await forum.threads.create({ name: args.title as string, message: { content: args.content as string }, appliedTags: (args.applied_tags as string[] | undefined) ?? [], }); return { content: [{ type: "text", text: `✅ Forum post "${thread.name}" created (id: ${thread.id}) in #${forum.name}.` }] }; } - src/tools/forums.ts:33-49 (schema)The MCP tool definition and input schema for discord_create_forum_post.
name: "discord_create_forum_post", description: "Create a new post (thread) in a forum channel.", inputSchema: { type: "object", properties: { forum_channel_id: { type: "string" }, title: { type: "string", description: "The post title (thread name)." }, content: { type: "string", description: "The initial message content of the post." }, applied_tags: { type: "array", items: { type: "string" }, description: "Array of tag IDs to apply to the post.", }, }, required: ["forum_channel_id", "title", "content"], }, },