fill
Set a form field's value using a CSS selector, with optional clearing and Enter press, so React, Vue, and jQuery detect the change.
Instructions
Set a form field's value so React, Vue and jQuery all notice.
Works on text inputs, textareas, contenteditable, checkboxes and radios (pass 'true'/'false' for those).
Args: selector: CSS selector for the field. value: Value to set. tab_id: Exact tab id. url_pattern: Regex matched against tab URLs. clear: Empty the field first. nth: Which match to fill, 0-based. press_enter: Press Enter afterwards, for search boxes.
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 |
|---|---|---|---|
| nth | No | ||
| clear | No | ||
| value | Yes | ||
| tab_id | No | ||
| selector | Yes | ||
| press_enter | No | ||
| url_pattern | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |