Slack 是做什么的?
使用 slack 工具。当上下文中存在 channelId 和 Slack 时间戳消息 ID 时,优先复用它们。
输入
channelId:Slack 频道 ID。messageId:Slack 时间戳,例如1712023032.1234。to:发送消息时目标地址,格式为channel:<id>或user:<id>。emoji:用于反应的表情符号,支持 Unicode 或:name:格式。
动作
{ "action": "sendMessage", "to": "channel:C123", "content": "你好" }
{ "action": "readMessages", "channelId": "C123", "limit": 20 }
{
"action": "react",
"channelId": "C123",
"messageId": "1712023032.1234",
"emoji": ":white_check_mark:"
}
{ "action": "reactions", "channelId": "C123", "messageId": "1712023032.1234" }
{
"action": "editMessage",
"channelId": "C123",
"messageId": "1712023032.1234",
"content": "更新后的文本"
}
{ "action": "deleteMessage", "channelId": "C123", "messageId": "1712023032.1234" }
{ "action": "pinMessage", "channelId": "C123", "messageId": "1712023032.1234" }
{ "action": "unpinMessage", "channelId": "C123", "messageId": "1712023032.1234" }
{ "action": "listPins", "channelId": "C123" }
{ "action": "memberInfo", "userId": "U123" }
{ "action": "emojiList" }
安全须知
- 当上下文不明确时,请确认是否执行破坏性删除操作。
- 对外发送消息应保持简短,避免使用 Markdown 表格。
- 优先使用线程/消息 ID,而非模糊的频道名称。