kimi_history
Retrieve a bounded snapshot of a Kimi session's visible conversation from its JSONL transcript without affecting the run. Returns paginated messages, a resume cursor, and has_more status.
Instructions
Read a bounded snapshot of a kimi session's visible conversation from kimi's native agents/main/wire.jsonl. Does not send anything into the run, does not take the session lock, and does not wait for kimi to finish. Returns JSON: session, state (active if this process is running it, otherwise unknown — sessions stay resumable so 'completed' is not claimed), items (user / assistant / tool / gap), an opaque cursor to resume even at the current EOF, has_more, truncated_tail. Thought/reasoning/encrypted content are omitted. User text comes only from context.append_message with role=user — if that stream has none, the page says so rather than inventing prompts from session metadata. 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 kimi_history call for this same session and transcript. Omit to read from the start. Always returned, including when the page is empty at EOF, so a later append can be read without missing the partial trailing line. | |
| session | Yes | Session id from [session: <id>] or kimi_sessions / kimi_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. |