run_basic
Run a BBC BASIC program on an emulated BBC Micro and return the final MODE 7 screen as rows and text for assertion.
Instructions
Type a BBC BASIC program, RUN it, and return the final screen.
Convenience wrapper around type_input + cycle runs. program
is the full BASIC source; each line must carry its own line
number (this tool does not auto-number). A leading NEW is
issued first so the program runs in a clean workspace.
boot_cycles gives BASIC time to reach the prompt after NEW;
settle_cycles is the max BBC cycle budget for the program's
own execution after RUN.
Returns the MODE 7 screen as rows (list of 25 lines) and
text (newline-joined) so callers can assert on either shape.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"program": "<program>"
},
"name": "run_basic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| program | Yes | ||
| session_id | Yes | ||
| boot_cycles | No | ||
| settle_cycles | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||