browser_fill
Fills input fields with text using a snapshot reference or CSS selector and auto-detects contenteditable and rich text editors.
Instructions
Fill text into an input element by its snapshot reference (@1, @2, ...) or CSS selector. Auto-detects contenteditable and rich text editors.
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": "browser_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Reference from snapshot (e.g. '@1') | |
| text | Yes | Text to enter | |
| clear | No | Clear before typing | |
| paste | No | Use instant CDP text insertion pipeline | |
| selector | No | CSS selector if ref is not used | |
| press_enter | No | Press Enter key immediately after entering text (useful for chat submissions or search queries) |