discord_send_message
Send plain text messages to Discord channels using channel ID and content parameters. This tool enables automated communication within Discord servers through the discord-mcp server.
Instructions
Send a plain text message to a channel.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | Yes | ||
| content | Yes |
Implementation Reference
- src/tools/messages.ts:310-314 (handler)The handler function implementation for the discord_send_message tool.
case "discord_send_message": { const channel = await getTextChannel(args.channel_id as string); const sent = await channel.send(args.content as string); return { content: [{ type: "text", text: `✅ Message sent (id: ${sent.id}) in #${channel.name}.` }] }; } - src/tools/messages.ts:20-30 (schema)The schema definition for the discord_send_message tool.
name: "discord_send_message", description: "Send a plain text message to a channel.", inputSchema: { type: "object", properties: { channel_id: { type: "string" }, content: { type: "string" }, }, required: ["channel_id", "content"], }, },