craftos_read_terminal
Reads plain text from the terminal and every monitor, one entry per screen, to get on-screen words without a screenshot. Use delta mode to return only screens that changed.
Instructions
Read the plain text of the terminal and every monitor, one entry per screen with its window number, peripheral name and lines. Cheaper than a screenshot when only the words matter; craftos_ui also gives colours, buttons and the cells to touch. delta:true gives a screen that has not changed since the previous read_terminal of this session as just {window, peripheral?, unchanged: true}.
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": {
"id": "<id>"
},
"name": "craftos_read_terminal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id returned by craftos_session_create. | |
| delta | No | Return only what changed since the previous call. | |
| fullScreens | No | Keep every line, trailing blank ones too (default: lines stop at the last non-blank one). |