messages.ts•580 B
import { Tool } from "@modelcontextprotocol/sdk/types.js";
export interface PostMessageArgs {
channel_id: string;
text: string;
}
export const postMessageTool: Tool = {
name: "slack_post_message",
description: "Post a new message to a Slack channel",
inputSchema: {
type: "object",
properties: {
channel_id: {
type: "string",
description: "The Channel ID to post the message to",
},
text: {
type: "string",
description: "The message text to post",
},
},
required: ["channel_id", "text"],
},
};