feishu-card-sender-beautify 飞书推送展示卡片脚本

发送飞书 Interactive Card 格式消息,用于美化富文本卡片推送和通知优化。

已扫描
适合谁
需要美化飞书通知的团队、使用飞书进行自动化的开发者、运维或运营人员
不适合谁
不使用飞书的用户、需要复杂交互卡片的高级开发者
国内可用性
需网络配置。可能需要网络配置或第三方服务可访问。
安装难度
新手友好(★☆☆)。基于终端操作、依赖、API Key 和本地环境要求的初步判断。

安装与下载

openclaw skills install @kolikoliko/feishu-card-sender-beautify

Skill 说明

命令、参数、文件名以原文为准

feishu-card-sender-beautify

发送飞书 Interactive Card 富文本消息。

快速开始

发送卡片到当前聊天

使用 feishu_im_user_message 工具:

feishu_im_user_message(
    action="send",
    msg_type="interactive",
    receive_id="oc_群聊ID",  # 群聊用 oc_xxx
    receive_id_type="chat_id",
    content=json.dumps(card)
)

卡片结构

card = {
    "config": {"wide_screen_mode": True},
    "header": {
        "title": {"tag": "plain_text", "content": "📰 标题"},
        "template": "blue"  # blue/red/green/yellow/wathet/orange/grey
    },
    "elements": [
        {"tag": "div", "text": {"tag": "lark_md", "content": "正文内容"}}
    ]
}

颜色模板

颜色
blue
red
green绿
yellow
wathet浅蓝
orange
grey

详细文档

  • [卡片模板](references/card-templates.md) - 完整模板示例
  • [API 参考](references/api-guide.md) - feishu_im_user_message 详细参数

注意

  • 群聊 ID 格式:oc_xxx
  • 用户 ID 格式:ou_xxx
  • 发送群聊用 receive_id_type="chat_id"
  • 发送私聊用 receive_id_type="open_id"
K
@kolikoliko

已收录 1 个 Skill

相关推荐