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)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"agent_id": "<agent_id>"
},
"name": "tail_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| agent_id | Yes | ||
| session_id | Yes |