Skip to Content

text_type

Type text into the focused field. method: keys sends key events; paste goes through the clipboard (restored after) and is the choice for non-ASCII text. Click or ui_act focus the field first.

Arguments

Over MCP every tool also takes machine: the machine’s name or id, optional when only one machine is online.

NameTypeRequiredMeaning
method`“auto”“keys”“paste”`
observe`“none”“ui”“image”`
submitbooleannoPress Enter afterwards. Default: false.
textstringyesThe text, literally (at most 10 000 characters). Not logged in clear in the audit.

Result

NameTypeRequiredMeaning
audit_idstringyesId of the audit line on the machine.
dispatchedbooleanyes
foreground_changedbooleanyesThe frontmost app or window changed because of the action.
observationobjectno
settled_msintegeryesHow long the screen took to go quiet after the action, in milliseconds.

Examples

{ "name": "text_type", "arguments": { "machine": "<machine>", "text": "<text>" } }

Limits

The call times out after 30 s (timed_out). Available since version 0.0.2. A refused or failed call returns one of the error codes.