log_tail
Reads new lines from gen/log.txt using a cursor, returns the next cursor, and detects game-start log rotation to recover unread lines from the previous session.
Instructions
Follow gen/log.txt: returns lines written since cursor and next_cursor for the next call. Without a
cursor returns the last initial_lines lines. Detects the log being recreated at game start
(rotated=true) and first returns the unread rest of the old session from log_prev.txt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | ||
| max_lines | No | ||
| initial_lines | No |