AgentSkillsCN

get-chat-history

获取当前聊天历史,包括用户消息、你的回复,以及系统任务通知。当用户说“查看之前的消息”或“我刚才发了什么”,请使用此工具。

SKILL.md
--- frontmatter
name: get-chat-history
description: Get current chat history including user messages, your replies, and system task notifications. When user says 'check previous messages' or 'what did I just send', use this tool.
system: true
handler: im_channel
tool-name: get_chat_history
category: IM Channel

Get Chat History

获取当前聊天的历史消息记录。

Parameters

参数类型必填说明
limitinteger获取最近多少条消息,默认 20
include_systemboolean是否包含系统消息(如任务通知),默认 True

Returns

  • 用户发送的消息
  • 你之前的回复
  • 系统任务发送的通知

When to Use

  • 用户说"看看之前的消息"
  • 用户说"刚才发的什么"
  • 需要回顾对话上下文

Related Skills

  • send-to-chat: 发送消息