type_text
Enters text into the focused Electron app element, optionally focusing a CSS selector or accessibility ref first and clearing existing content.
Instructions
Type text into the focused element (optionally click a selector first)
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 |
|---|---|---|---|
| ref | No | Optional accessibility element ref from snapshot | |
| text | Yes | ||
| clear | No | If true and selector/ref is set, clear the field first | |
| selector | No | Optional CSS selector to focus before typing | |
| targetId | No | ||
| processId | No | Target process ID. Omit if only one app is running. | |
| pressEnter | No |