get_messages
Retrieve messages from Zulip streams or topics, or fetch context around specific messages using message IDs for conversation tracking.
Instructions
Get messages from a stream/topic, or fetch context around a message ID.
Accepts either stream+topic OR message_id:
stream+topic: fetch messages from that topic (with optional pagination)
message_id: auto-discover stream/topic, fetch context around that message
Both: use stream/topic narrow with anchor at message_id
Args: stream: Stream/channel name (optional if message_id given). topic: Topic name (optional if message_id given). num_messages: Number of messages (default 20, max 100). before_message_id: Get messages before this ID (for pagination). message_id: Fetch context around this message ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stream | No | ||
| topic | No | ||
| num_messages | No | ||
| before_message_id | No | ||
| message_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |