tail_messages
Read the most recent messages from a session to check current activity or state, with no read offset tracking required.
Instructions
Read the last N messages from a session. Quick status check without offset tracking.
AUTOMATIC TRIGGERS - Call this when:
You just joined and want to see recent activity
Quick glance at what's happening without tracking offsets
Checking session state before full context load
DIFFERENCE from read_messages: This does NOT track your read offset and always returns the most recent N messages regardless of what you've seen. Use read_messages for tracking unseen messages.
PARAMETERS:
session_id: Session to read from
agent_id: Your agent ID (must belong to the session)
n: Number of messages (default: 20, max: 100)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| agent_id | Yes | ||
| session_id | Yes |