Skip to main content

get-message

Get the content of a sent message by its ID

Ir a la instalación

Datos de origen

Repositorio
jim60105/AIr-Friends
Última actividad en el origen
28 de agosto de 2026 a las 23:09
Idioma detectado de SKILL.md
inglés
Estrellas
6
Forks
0

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Explorador de archivos
2 archivos

Mostrando SKILL.md

SKILL.md
Instrucciones de origen · Vista previa de solo lectura
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.
Ver en GitHub