type_text
Enter text into input fields using snapshot refs or CSS selectors. Falls back to selectors for combobox and autocomplete inputs when refs are unavailable.
Instructions
Type text into an input field. Provide either a ref (from snapshot) or a CSS selector. Use ref when available; otherwise use selector when snapshot doesn't assign refs (common with combobox/autocomplete inputs). Call snapshot first to find target element.
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": {
"tabId": "<tabId>",
"text": "<text>"
},
"name": "type_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from snapshot (e.g. 'e1', 'e2') | |
| text | Yes | Text to type into the element. Replaces existing content. | |
| tabId | Yes | Tab ID from create_tab | |
| selector | No | CSS selector (e.g. 'input[name=q]', '#search-input') |