From df284fec27fc9995ca29ad8a74e2e8128c866c3b Mon Sep 17 00:00:00 2001 From: Gustavo Madeira Santana Date: Tue, 17 Mar 2026 23:48:17 +0000 Subject: [PATCH] Teams: own message tool card schema --- extensions/msteams/src/channel.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/extensions/msteams/src/channel.ts b/extensions/msteams/src/channel.ts index 00430996001..d8e3de68527 100644 --- a/extensions/msteams/src/channel.ts +++ b/extensions/msteams/src/channel.ts @@ -1,5 +1,6 @@ import { formatAllowFromLowercase } from "openclaw/plugin-sdk/allow-from"; import { collectAllowlistProviderRestrictSendersWarnings } from "openclaw/plugin-sdk/channel-policy"; +import { createMessageToolCardSchema } from "openclaw/plugin-sdk/channel-runtime"; import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime"; import type { ChannelMessageActionName, @@ -383,6 +384,15 @@ export const msteamsPlugin: ChannelPlugin = { ? (["cards"] as const) : []; }, + getToolSchema: ({ cfg }) => + cfg.channels?.msteams?.enabled !== false && + Boolean(resolveMSTeamsCredentials(cfg.channels?.msteams)) + ? { + properties: { + card: createMessageToolCardSchema(), + }, + } + : null, handleAction: async (ctx) => { // Handle send action with card parameter if (ctx.action === "send" && ctx.params.card) {