Slack: add new slack connection

This commit is contained in:
Shadow
2026-01-03 21:27:18 -06:00
committed by Peter Steinberger
parent 4b3ca29404
commit bf3d120f8c
4 changed files with 243 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import { loadConfig } from "../../config/config.js";
import type { AnyAgentTool } from "./common.js";
import { handleSlackAction } from "./slack-actions.js";
import { SlackToolSchema } from "./slack-schema.js";
export function createSlackTool(): AnyAgentTool {
return {
label: "Slack",
name: "slack",
description: "Manage Slack messages, reactions, and pins.",
parameters: SlackToolSchema,
execute: async (_toolCallId, args) => {
const params = args as Record<string, unknown>;
const cfg = loadConfig();
return await handleSlackAction(params, cfg);
},
};
}