run_until_text
Execute emulator cycles until a specified text string appears on the MODE 7 screen, returning whether it was found within the cycle limit.
Instructions
Run in chunks until needle appears anywhere in the MODE 7 screen.
Substring match across the entire decoded screen, joined with
newlines, so the match is not row-anchored. Use
run_until_prompt when the marker must sit at the start of a
row (the BASIC > prompt typically does). Returns early as
soon as the text is found, or with found=False once
max_cycles has elapsed without a match. The chunk size
trades responsiveness (shorter = checks more often) against
overhead (shorter = more memory reads). Returns
{"ok", "found", "cycles_ran"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| needle | Yes | ||
| max_cycles | No | ||
| session_id | Yes | ||
| chunk_cycles | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||