mcode_history
Read a bounded snapshot of a MiniMax Code session's conversation from its local log without locking, modifying, or waiting for the run. Returns JSON with a cursor to resume reading at any point.
Instructions
Read a bounded snapshot of a MiniMax Code session's visible conversation from the native messages.jsonl under ~/.minimax/v2/sessions. Does not send anything into the run, does not take the session lock, and does not wait for mcode to finish. Returns JSON: session, state (active if this process is running it, otherwise unknown), items (user / assistant / tool / gap), an opaque cursor to resume even at the current EOF, has_more, truncated_tail. Thinking and image binaries are omitted. Caps: limit (default 50, max 200), max_chars per item (default 4000, max 16000), and 100000 chars on the whole JSON page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max items to return (default 50, max 200). | |
| cursor | No | Opaque resume token from a previous mcode_history call for this same session and transcript. Omit to read from the start. | |
| session | Yes | Session id from [session: <id>] or mcode_sessions / mcode_running. | |
| max_chars | No | Max characters per item text (default 4000, max 16000). | |
| include_tools | No | Include tool calls/results (default true). Filtered tool lines still advance the cursor. |