ui_fill
ui_fillFill a specified input field with a value by CSS selector or a selector from the current page state for browser automation and UI testing.
Instructions
Fill the single input element matching the given selector with a value. The selector may be a CSS selector or the selector value from ui_get_page_state, passed unchanged. Selectors containing "nth=" are positional: call ui_get_page_state again after the page changes before reusing them.
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": "ui_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The value to fill into the input | |
| selector | Yes | CSS selector, or the `selector` value of an input element from ui_get_page_state | |
| session_id | No | Which open session to act on, as returned by ui_start_session. Optional with one open session; required when several are open. |