Fill field(s)
browser_fillReplace text field values or fill multiple inputs, selects, and checkboxes in one call. Target fields by ref, label, role, or test ID, with optional verification and Enter submit.
Instructions
Replace the value of a text field. Pass fields to fill several fields (text, select, checkbox via true/false) in one call.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browser_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nth | No | ||
| ref | No | Element ref from snapshot (preferred) | |
| name | No | ||
| role | No | ||
| text | No | ||
| exact | No | ||
| label | No | ||
| value | No | ||
| expect | No | ExpectSpec postconditions | |
| fields | No | ||
| pageId | No | ||
| submit | No | Press Enter after filling | |
| testId | No | ||
| within | No | Scope to a unique container (ref, role+name, label, testId or CSS selector) | |
| options | No | ||
| session | No | ||
| selector | No | CSS (last resort) | |
| snapshot | No | Page state returned after the action: diff (default), full, none | |
| placeholder | No |