read_messages
Fetch unseen messages from a session to check for task assignments, answers, or updates after sending a response. Use for quick status checks without waiting.
Instructions
Read new messages from a session. Returns only unseen messages (offset-tracked).
AUTOMATIC TRIGGERS - Call this when:
Checking for new messages after sending a response
Looking for task assignments or answers to your questions
Periodic status check during active collaboration
DIFFERENCE from poll_messages: This returns immediately without waiting. Use poll_messages for blocking waits in autonomous agent loops.
WORKFLOW POSITION: Call after sending messages, between work steps.
PARAMETERS:
session_id: Session to read from
agent_id: Your agent ID (required for authorization and offset tracking)
limit: Max messages to return (default: 50, max: 200)
msg_types: Filter by message types like ["task", "answer"] (optional)
from_agent: Filter by specific sender (optional)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| agent_id | Yes | ||
| msg_types | No | ||
| from_agent | No | ||
| session_id | Yes |