get_session_context
Retrieve full context from a Claude Code session by session ID. Use it after finding a relevant result to get more context, with an optional message limit.
Instructions
Retrieve full context from a specific Claude Code session. Use this after finding a relevant result to get more context from that session.
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": "get_session_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of messages to return (default: 50) | |
| session_id | Yes | The session ID to retrieve context from |