type_text
Types Unicode-safe text into the focused field; optionally clears existing content first or presses Return to submit it.
Instructions
Type into the focused field — unicode-safe. Click the field first to focus it.
To set a form field in one verified call use fill() instead (click + replace + read back).
Returns {"ok", "action", "instance", "detail", "method": "xdotool"|"clipboard", "warnings"?}.
clear=true selects the field's content first (ctrl+a) so the text REPLACES it;
submit=true presses Return afterwards — one call for "fill and submit".
Pure ASCII is typed via xdotool (timeout scales with length); 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. The clipboard is put back as it was afterwards (previous text, or
cleared), best-effort: an app that reads the selection late (> 0.3 s) can paste the restored
text instead, and the host bridge may have mirrored the typed text in that window — see
clipboard(). Terminals that paste with shift+Insert instead of ctrl+v need press_keys after
clipboard(action='set'). Fails (isError) rather than silently losing characters if xclip is
missing for non-ASCII text. observe/settle_ms: see click().
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": {
"text": "<text>"
},
"name": "type_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| clear | No | ||
| submit | No | ||
| observe | No | none | |
| instance | No | ||
| settle_ms | No | ||
| observe_region | No |