Fill input
fillSet input, textarea, or contenteditable values in a single call that fires input and change events, targeting an element by ref, CSS selector, visible text, or role and name.
Instructions
Set an input/textarea/contenteditable value in one call (fires input + change). Target one of: ref (preferred), selector, text, or role+name.
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": {
"value": "<value>"
},
"name": "fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from the latest snapshot, e.g. e12. Preferred over selectors. | |
| name | No | Accessible name to combine with role. | |
| role | No | ARIA role, e.g. button, link, textbox, checkbox, combobox. | |
| text | No | Visible text to match (first match wins). | |
| exact | No | Require exact text/name match. | |
| value | Yes | Value to set. | |
| confirm | No | Confirm a high-impact action when the server policy is ask. | |
| observe | No | Return a compact change observation after the action (default true). | |
| selector | No | CSS selector (use when no ref is available). |