type
Type into a text field by ref (replaces its content). Returns the new screen, or only the lines that changed. The result starts with 'Change: none | content changed | new screen | scrolled'. Also gives the field's value after typing.
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": "<session>",
"ref": "<ref>",
"text": "<text>"
},
"name": "type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Element ref from the screen, e.g. e42. After a restart refs can carry a prefix, such as f1e42; use them exactly as the screen shows them. | |
| text | Yes | ||
| enter | No | Press Enter afterwards | |
| secret | No | true: the text is a password, a one-time code or another secret. It is typed, and kept out of the result, the watch page, the room log and exported tests. Password fields are treated this way without it. | |
| settle | No | Wait until the screen stops changing (two equal reads 100 ms apart), up to timeout_ms. Use after any action that starts work. A slow result can still follow a pause, so prefer wait_for when you know the expected text. | |
| compact | No | When the change is 'content changed', the result lists only the lines that changed (+ added, - removed, ~ changed), with refs as on the full screen. This is the default. Pass false to get the whole screen. | |
| session | Yes | Session from open_app | |
| wait_for | No | Use after any action that starts work. Wait until this appears (a ref, a text, or role+name), or disappears with gone: true. The result says Waited: matched or timed out. | |
| timeout_ms | No | How long wait_for and settle may take, in ms (default 2000) |