Get Messages
get_messagesRetrieve messages from a MAX chat using chat ID or specific message IDs. Filter by count and time range when using chat ID.
Instructions
Read messages from a MAX chat. Use either chat_id OR message_ids — they are mutually exclusive. With chat_id: returns recent messages from that chat (use count/from/to to filter). With message_ids: returns those specific messages only (do NOT provide chat_id).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | No | The chat_id to read messages from. Omit when using message_ids. | |
| count | No | Number of messages to return (1-100, default: 20). Only used with chat_id. | |
| from | No | Start timestamp in milliseconds (Unix ms) for time range filter. Only used with chat_id. | |
| to | No | End timestamp in milliseconds (Unix ms) for time range filter. Only used with chat_id. | |
| message_ids | No | List of specific message IDs to retrieve. Do NOT provide chat_id when using this. |