craftos_act
Sends a keypress, text entry, or monitor touch, waits until the program consumes it and the screen settles, then returns whether input was consumed and the new waiting state.
Instructions
Send one input (touch a monitor cell, press a key, or type text), wait until the program actually consumed it, then wait for the screen to settle. Returns consumed (false = the program was not listening for that input) and the new waiting state; follow with craftos_ui to read the result.
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_act"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id returned by craftos_session_create. | |
| key | No | Press this key, e.g. "enter" or "up". | |
| text | No | Type these characters. | |
| touch | No | Touch this monitor cell (1-based); craftos_ui gives each button's @x,y. | |
| quietMs | No | How long the screen must stay unchanged afterwards. | |
| timeoutMs | No | Longest wait for the program to react and settle. |