mcpField
F
feishu-message

feishu-message

github.com/m1hengProductivity4.2k145 installsUpdated 30w ago
Repository

About feishu-message

feishu-message is a Feishu message-reading tool for retrieving one message by ID or listing recent messages in a direct or group chat. It supports ordering and time-range filters for message lists.

Key features

  1. 01Retrieve a message by ID
  2. 02List recent chat messages
  3. 03Choose message order
  4. 04Filter lists by time range
  5. 05Set chat and page size

Use cases

  1. 01Look up a specific Feishu message
  2. 02Review recent direct-message history
  3. 03Retrieve group messages for a time window

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/m1heng/clawdbot-feishu --skill feishu-message

After installing, type/feishu-messagein Claude Code to confirm it loaded.

Details

From the project README

Feishu Message Tool

Single tool feishu_message for reading Feishu messages — get a single message by ID or list recent messages in a chat.

Actions

Get Single Message
{
  "action": "get",
  "message_id": "om_xxx"
}

Returns:

{
  "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 chat_id to use the current conversation's chat:

{
  "action": "list"
}

With custom page size, sort order, and time range:

{
  "action": "list",
  "chat_id": "oc_xxx",
  "page_size": 20,
  "sort_type": "ByCreateTimeAsc",
  "start_time": "1710000000",
  "end_time": "1710086400"
}

Returns:

{
  "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

ParameterRequiredDescription
actionYesget or list
message_idget: YesFeishu message ID (e.g., om_xxx)
chat_idlist: OptionalChat ID (e.g., oc_xxx). Omit to use current chat.
page_sizelist: OptionalNumber of messages (default: 10, max: 50)
sort_typelist: OptionalByCreateTimeDesc (default) or ByCreateTimeAsc
start_timelist: OptionalUnix timestamp in seconds (e.g., "1710000000"). No lower bound if omitted.
end_timelist: OptionalUnix timestamp in seconds (e.g., "1710086400"). No upper bound if omitted.

Configuration

channels:
  feishu:
    tools:
      message: true  # default: true

Permissions

  • im:message or im:message:readonly — read single/DM messages
  • im:message.group_at_msg:readonly — read all messages in group chats (not just @bot messages)

Comments

Markdown supported