browser_fill
Clears a field and fills it with new text using a snapshot ref or CSS selector, triggering native input events; password-like fields return only the text length.
Instructions
Clear a field and replace its content. Prefer ref from browser_snapshot; selector still works. Uses native CDP Input.insertText, so the page's own input events fire. Returns the length only — never the text — when the field is a password or looks like a secret.
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 | Ref from the latest browser_snapshot, e.g. e12 | |
| text | Yes | Text to fill | |
| selector | No | CSS selector for the input (use ref instead when you have one) |