fill
Set an input, textarea, or select value by CSS selector in one step, clearing the field and dispatching an input event so React, Vue, and other frameworks detect the change.
Instructions
Set the value of an input/textarea/select matching the CSS selector in one shot (no key events). Clears the field first. Faster than type for setting a known value. Sets the value via the DOM and dispatches an input event so frameworks (React, Vue, etc.) pick up the change.
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": {
"selector": "<selector>",
"text": "<text>"
},
"name": "fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Value to set | |
| selector | Yes | CSS selector of the element, e.g. #search-button, input[name=q] |