craftos_wait_for_text
Waits until exact text appears on the terminal or a monitor, returning "found" or timing out—use it to monitor a running program's output.
Instructions
Wait until text appears anywhere on the terminal or one monitor, returning "found", or an error after timeoutMs. Use it to wait for a program's output while it runs; craftos_expect waits too and checks several things (text, rectangles, sim values) in one call.
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>",
"text": "<text>"
},
"name": "craftos_wait_for_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id returned by craftos_session_create. | |
| text | Yes | Exact text to find, case-sensitive. | |
| window | No | 0 = terminal; see craftos_session_list for monitor windows. | |
| timeoutMs | No | Give up after this long. |