Session Get¶
Browse messages in a Claude Code session. Paginated with role/type filtering. Use after context_search finds a session.
MCP name: session_get
Category: context
Parameters¶
| Name | Type | Required | Description |
|---|---|---|---|
limit |
int |
No | Max messages to return (default 10) |
message_types |
str |
No | Comma-separated: 'text' (has text content), 'tool_use' (has tool calls) |
offset |
int |
No | Start index (default 0) |
query |
str |
No | Substring filter on message text (case-insensitive) |
roles |
str |
No | Comma-separated: 'user', 'assistant' |
session_id |
str |
Yes | Full or partial (8-char) session UUID |