type
Fill text inputs in Electron applications by replacing existing content. Specify element with selector or reference, and provide text to insert.
Instructions
Fill a text input, REPLACING existing content. Pass selector or ref. Uses Playwright's fill. For keyboard-level typing (CodeMirror, contenteditables), use keyboard_type instead.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | ||
| ref | No | Ref from snapshot. Alternative to selector. | |
| text | Yes | ||
| timeoutMs | No | Default 5000. |