type_text
Types text into a focused field, using xdotool for ASCII characters and clipboard insertion for unicode characters. Returns success status or error if non-ASCII text cannot be typed.
Instructions
Type into the focused field — unicode-safe. Click the field first to focus it.
Returns {"ok", "action", "instance", "detail", "method": "xdotool"|"clipboard"}.
Pure ASCII is typed via xdotool; text with any non-ASCII char (č/š/ž …) is inserted via the
clipboard + ctrl+v, because xdotool's synthetic unicode keystrokes get silently dropped by
some toolkits (e.g. Inkscape's GTK canvas) even though they work in browsers. Fails (isError)
rather than silently losing characters if xclip is missing for non-ASCII text.
observe/settle_ms: see click().
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| observe | No | none | |
| instance | No | ||
| settle_ms | No |