fill
Clears an input field and types the provided text using a CSS selector, supporting React-compatible value updates for reliable browser automation.
Instructions
Fill an input field with text (clears existing value, React-compatible)
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>",
"value": "<value>"
},
"name": "fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | Tab ID (optional) | |
| value | Yes | Text value to fill | |
| selector | Yes | CSS selector of the input element |