Read a Pi session
pi_session_readRead stable, revision-bound pages from a Pi coding-agent session transcript, defaulting to visible conversation content; use raw mode for metadata and tool internals.
Instructions
Read the active branch in stable, revision-bound pages. Defaults to visible conversation content; raw mode includes metadata and tool internals.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Use conversation for visible user/assistant history (default); use raw only when internal records are explicitly required. | conversation |
| cursor | No | Omit for the first page. Legacy first-page values '/' and 'start' are accepted. For later pages, pass only the next_cursor returned by the preceding call unchanged. | |
| max_chars | No | Maximum Unicode characters to return, from 1 to 100000. | |
| session_ref | Yes | Opaque session_ref returned by pi_session_search or pi_session_find; reuse it unchanged. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| text | Yes | ||
| has_more | Yes | ||
| next_cursor | No | ||
| session_ref | Yes | ||
| view_entries | Yes | ||
| total_entries | Yes |