session_messages
Retrieve messages for a specific session with filtering, sorting, and pagination; returns only the message list, not session details or status.
Instructions
Get messages for a session. Returns only the message list; does not fetch session details or status.
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>"
},
"name": "session_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Filter by message type. | |
| limit | No | Max messages to return. | |
| order | No | Sort order by updated time. | |
| cursor | No | Pagination cursor from previous page. | |
| server | No | Server id. Omit when exactly one server is available. | |
| session_id | Yes | Session id on that server. |