fill
Clears a form field and enters a specified value, automatically waiting for the element before typing; use key-by-key typing instead when JavaScript key events are needed.
Instructions
[Agent Browser] Clear and fill a form field with the given value. Clears existing content before typing. Auto-waits for element. Use 'type' instead if you need to trigger key-by-key JS events.
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 |
|---|---|---|---|
| value | Yes | ||
| selector | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| hints | No | ||
| message | No | ||
| success | No | ||
| suggestions | No |