history
Retrieve the recent conversation history of a session, ordered chronologically. Specify the session ID and optional limit to get past messages.
Instructions
Get recent conversation history for a session in chronological order.
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": {
"sessionId": "<sessionId>"
},
"name": "history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session identifier | |
| limit | No | Max entries (default 20) |