发一张交互卡片
feishu_send_cardSends a Feishu interactive card using raw JSON for formatted, multi-field status updates that can later be refreshed in place.
Instructions
发一张飞书交互卡片(JSON 卡片结构,原样提交,不做模板加工)。适合:需要排版的内容(分块、分隔线、备注脚注)、要展示多字段状态、以及之后需要原地刷新的那类消息。不适合:只有一两句话的短提示(用 feishu_send_text 更直接)。想让卡片后续可被 feishu_update_card 更新,必须在卡片里写 config.update_multi = true。最小可用卡片示例:{ "config": { "wide_screen_mode": true, "update_multi": true }, "header": { "template": "blue", "title": { "tag": "plain_text", "content": "构建结果" } }, "elements": [ { "tag": "div", "text": { "tag": "lark_md", "content": "状态:通过\n耗时:42s" } }, { "tag": "hr" }, { "tag": "note", "elements": [ { "tag": "plain_text", "content": "由 dsh-feishu 发送" } ] } ] }
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"card": "<card>"
},
"name": "feishu_send_card"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | Yes | 完整卡片 JSON 对象(不要字符串化)。至少要 config / header / elements 三段;elements 里每项要有 tag。建议带上 "config": { "wide_screen_mode": true, "update_multi": true },这样以后能原地更新。 | |
| target | No | 发送目标:chat_id(oc_ 开头)/ open_id(ou_ 开头)/ 邮箱。不填则发到默认会话(需已配置 FEISHU_DEFAULT_CHAT_ID,否则会报错)。 |