来源信息
- 仓库
- jim60105/AIr-Friends
- 最近来源活动
- 2026年8月28日 23:09
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 6
- 分支
- 0
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
文件资源管理器
2 个文件正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- get-message
- description
- Get the content of a sent message by its ID
- parameters
- [{"name":"messageId","type":"string","required":false,"description":"The ID of the message to fetch. If omitted, returns the last message sent in this session."}]
# get-message
Retrieve the content and metadata of a message by its ID. Useful for checking the current content before editing.
## Usage
```bash
${HOME}/.agents/skills/get-message/scripts/get-message.ts \
--session-id "$SESSION_ID" \
--message-id "<messageId from send-reply>"
# Or without --message-id to get the last sent message:
${HOME}/.agents/skills/get-message/scripts/get-message.ts \
--session-id "$SESSION_ID"
```
**`--session-id`**: Use the session id rendered in your system prompt. `$SESSION_ID` works only in per-spawn deployments; in shared-process mode it is not set and the skill library resolves the owning session automatically — a mismatched value is never honored.
## Response
```json
{
"success": true,
"data": {
"messageId": "msg_123",
"content": "The message text content",
"userId": "user_456",
"username": "BotName",
"timestamp": "2024-01-15T10:30:45.123Z",
"isBot": true
}
}
```
## Important Notes
- If `messageId` is omitted, the last message sent via `send-reply` or `edit-reply` in the current session is returned.
- If no message has been sent yet and no `messageId` is provided, an error is returned.
- Only messages accessible in the current channel can be fetched.
在 GitHub 查看