用途:该技能让智能体通过统一的 message 工具操作 Discord,而不暴露 Discord 专用工具。所有操作都必须指定 channel: "discord"。
主要能力:发送消息(可带媒体、可选 silent 静默)、读取消息、编辑与删除消息、添加表情回应、发起投票、置顶消息、创建线程、搜索消息,以及设置在线状态(presence)。
使用方式:发送类动作使用 to: "channel:<id>" 或 to: "user:<id>";针对具体消息的动作使用 channelId 加 messageId。多账号可传可选 accountId。示例:{"action":"send","channel":"discord","to":"channel:123","message":"hello","silent":true}。富 UI 推荐使用 components v2(components 字段,需来自 JS/TS 集成的 Carbon 组件实例,如 Container、TextDisplay),不要与 embeds 同时使用,因为 Discord 会拒绝 v2 加 embeds;embeds 为旧版,仅在必要时使用,且存在 components v2 时会被忽略。
限制与注意:需遵守门控 channels.discord.actions.*,其中 roles、moderation、presence、channels 等默认关闭。优先使用显式 ID(guildId、channelId、messageId、userId)。外发消息避免使用 Markdown 表格,提及用户用 <@USER_ID>。写作风格应简短、口语化、少客套。
适用场景:在 Discord 服务器或私信中做消息收发、内容管理、互动与检索等日常运维。