列群里发过的文件
feishu_chat_filesList files shared in a Feishu group chat with message IDs, names, sizes, and send times. Filter by filename keyword and get message IDs needed to recall or delete a file.
Instructions
列出群里发过的文件(对应飞书群聊顶部的「文件」标签页),带消息 id、文件名、大小、发送时间。飞书没有独立的「群文件列表」接口,文件是挂在消息上的,所以这里翻最近的群消息再筛出来。要删某个文件:拿这里的 message_id 去调 feishu_recall。
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": {
"chat_id": "<chat_id>"
},
"name": "feishu_chat_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | 翻多少页消息,默认 3。 | |
| chat_id | Yes | 群 id(oc_ 开头)。 | |
| keyword | No | 只留文件名含这个词的(模糊匹配)。 | |
| page_size | No | 每页条数,默认 50。 |