fill
Writes a value into an input field in a Safari tab, dispatching input and change events so frameworks like React and Google Forms recognize it.
Instructions
Type a value into an input, textarea, or contenteditable element.
Sets the value through the element's native setter and then dispatches
input and change with bubbles: true. That matters: Google Forms,
React and other frameworks listen for those events and ignore a bare
assignment to .value, so a naive fill looks correct on screen and submits
empty.
Args: tab: Tab index within window 1, or a substring of its URL or title. selector: CSS selector for the field. value: The text to enter. index: Which match to fill when the selector hits several. Default 0.
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": {
"tab": "<tab>",
"selector": "<selector>",
"value": "<value>"
},
"name": "fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | Yes | ||
| index | No | ||
| value | Yes | ||
| selector | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |