type_text
Enter text into a referenced field, or send keystrokes to the focused window when no field is given; focus checks stop input reaching the wrong window.
Instructions
Enter text into a field by ref, or send keystrokes to the focused window when no ref is given.
Keystrokes are only sent if the window observed last is still in front; if focus was stolen in between, the call
fails with an explanation instead of typing into the wrong window. Never use this for passwords: use
fill_credential, which keeps the secret out of the conversation. Returns a RESULT line and a fresh observation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Ref of the text field to fill (it is cleared first). Leave empty to send the keystrokes to whatever currently has keyboard focus, which is right for calculators, address bars and dialogs that already have focus. | |
| text | Yes | The exact text to enter, e.g. 'report-2026.csv' or a whole calculator expression such as '1234+5678='. | |
| submit | No | Press Enter after typing, e.g. to submit a search box or confirm a file name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |