读会话最近的聊天(模型的上文)
feishu_recentFetch recent Feishu chat messages as chronological text to see what was just said before replying, editing files, or referencing a message ID.
Instructions
拉取某个飞书会话最近的消息,按时间正序(早→晚)拍平成文本,让模型知道「刚才聊了什么、谁在说」。典型用法:被叫醒后、要回复之前、要接着上文改文件之前,先调一次这个再动手;也用来确认某个人刚才发的那句话的 message_id,好配合 feishu_reply / feishu_download 用。默认会过滤掉机器人自己发的消息(对模型是噪音),需要看自己说过什么时传 include_bot=true。format=compact 只有「时间 发送人:内容」,适合快速读;format=full 额外带 message_id / msg_type / sender_id,适合接下来要针对某条消息做操作。要「发问并等人回答」不要用这个(轮询要自己写),用 feishu_ask。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "feishu_recent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 取多少条,默认 15,最大 50(超了按 50 算)。 | |
| format | No | compact=「[14:23] 张三:内容」(默认);full=再带 message_id/msg_type/sender_id。 | |
| chat_id | No | 会话 id(oc_ 开头)。不填用默认会话(FEISHU_DEFAULT_CHAT_ID)。 | |
| include_bot | No | 是否保留机器人自己发的消息。默认 false(过滤掉,因为对模型是噪音)。 | |
| since_minutes | No | 只要最近 N 分钟内的消息;不填表示不限时间。 |