fill_element
Fill text into input elements by CSS selector, selecting specific matches and optionally submitting the form to automate web interactions.
Instructions
Fill text into an input element matching the CSS selector.
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_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to enter | |
| index | No | Which matching element (0 = first) | |
| submit | No | Press Enter after filling | |
| selector | Yes | CSS selector for the input element | |
| connection_id | No | Chrome connection to use |