esp_type
Types text through the active window's hardware keyboard layout after validating all characters, preventing partial input and stopping on focus or layout changes.
Instructions
Type text on the hardware keyboard through the layout of the foreground window (Caps Lock is compensated, never toggled). The whole text is checked first: unmappable_text lists characters that cannot be typed and nothing is typed. Stops with focus_changed or layout_changed (steps_done = keys sent) when the foreground window or its layout changes. Click into the target field first and check the screen afterwards.
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>",
"control_id": "<control_id>"
},
"name": "esp_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to type, 1..10000 characters, through the keyboard layout of the foreground window. "\n" = Enter, "\t" = Tab. Characters the layout cannot type (emoji, dead-key combinations, other scripts) fail the whole call before anything is typed. | |
| control_id | Yes | From esp_control begin. | |
| per_key_ms | No | Time per key, 2..200 ms (default 12). Use 30 or more for remote desktops, virtual machines and Electron apps. | |
| request_id | No | Optional idempotency key: repeating a call with the same request_id within 5 min returns the first receipt (also an uncertain one) without running the action again. |