read_gemini_session
Read Gemini CLI session transcripts in .json or .jsonl format by session ID, prefix, title, or working-directory substring, and extract recent, full, handoff, or file-focused context for agents.
Instructions
Read a Gemini CLI session transcript cleanly (supporting both .json and .jsonl formats). Supports lookup by session_id (or prefix) or title/cwd substring.
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": "<session>"
},
"name": "read_gemini_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | handoff, recent, full, or files. | handoff |
| session | Yes | Gemini CLI session ID (or prefix) or title/cwd substring. | |
| max_chars | No | Maximum output size in characters (default 28000). | |
| last_n_turns | No | Number of latest turns to include (default 8). | |
| include_tool_details | No | Include truncated tool arguments (default false). |