feishu-message
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseFeishu Message Tool
Feishu 消息工具
Single tool for reading Feishu messages — get a single message by ID or list recent messages in a chat.
feishu_messagefeishu_messageActions
操作
Get Single Message
获取单条消息
json
{
"action": "get",
"message_id": "om_xxx"
}Returns:
json
{
"ok": true,
"action": "get",
"found": true,
"message_id": "om_xxx",
"msg_type": "text",
"content": "Hello world",
"sender_id": "ou_xxx",
"sender_type": "user",
"chat_id": "oc_xxx",
"create_time": "1710000000000",
"update_time": "1710000000000",
"mentions": []
}json
{
"action": "get",
"message_id": "om_xxx"
}返回结果:
json
{
"ok": true,
"action": "get",
"found": true,
"message_id": "om_xxx",
"msg_type": "text",
"content": "Hello world",
"sender_id": "ou_xxx",
"sender_type": "user",
"chat_id": "oc_xxx",
"create_time": "1710000000000",
"update_time": "1710000000000",
"mentions": []
}List Recent Messages
列出近期消息
List recent messages in a chat (DM or group), newest first by default.
Omit to use the current conversation's chat:
chat_idjson
{
"action": "list"
}With custom page size, sort order, and time range:
json
{
"action": "list",
"chat_id": "oc_xxx",
"page_size": 20,
"sort_type": "ByCreateTimeAsc",
"start_time": "1710000000",
"end_time": "1710086400"
}Returns:
json
{
"ok": true,
"action": "list",
"chat_id": "oc_xxx",
"total": 10,
"messages": [
{
"message_id": "om_xxx",
"msg_type": "text",
"content_preview": "Hello world",
"sender_id": "ou_xxx",
"sender_type": "user",
"create_time": "1710000000000",
"chat_id": "oc_xxx"
}
]
}列出聊天(单聊或群聊)中的近期消息,默认按最新消息排序。
省略则使用当前会话的聊天ID:
chat_idjson
{
"action": "list"
}自定义分页大小、排序方式和时间范围:
json
{
"action": "list",
"chat_id": "oc_xxx",
"page_size": 20,
"sort_type": "ByCreateTimeAsc",
"start_time": "1710000000",
"end_time": "1710086400"
}返回结果:
json
{
"ok": true,
"action": "list",
"chat_id": "oc_xxx",
"total": 10,
"messages": [
{
"message_id": "om_xxx",
"msg_type": "text",
"content_preview": "Hello world",
"sender_id": "ou_xxx",
"sender_type": "user",
"create_time": "1710000000000",
"chat_id": "oc_xxx"
}
]
}Parameters
参数
| Parameter | Required | Description |
|---|---|---|
| Yes | |
| get: Yes | Feishu message ID (e.g., |
| list: Optional | Chat ID (e.g., |
| list: Optional | Number of messages (default: 10, max: 50) |
| list: Optional | |
| list: Optional | Unix timestamp in seconds (e.g., |
| list: Optional | Unix timestamp in seconds (e.g., |
| 参数 | 是否必填 | 说明 |
|---|---|---|
| 是 | |
| 仅 | Feishu消息ID(例如: |
| 仅 | 聊天ID(例如: |
| 仅 | 消息数量(默认:10,最大值:50) |
| 仅 | |
| 仅 | Unix时间戳(秒级,例如: |
| 仅 | Unix时间戳(秒级,例如: |
Configuration
配置
yaml
channels:
feishu:
tools:
message: true # default: trueyaml
channels:
feishu:
tools:
message: true # 默认值:truePermissions
权限
- or
im:message— read single/DM messagesim:message:readonly - — read all messages in group chats (not just @bot messages)
im:message.group_at_msg:readonly
- 或
im:message—— 读取单条消息/单聊消息im:message:readonly - —— 读取群聊中的所有消息(不仅是@机器人的消息)
im:message.group_at_msg:readonly