Set a form field value
form_inputSet a form element's value by its ref, using booleans for checkboxes/radios and option values or visible text for selects. Use it to fill or update fields in a controlled browser tab.
Instructions
Set the value of a form element identified by ref (from read_page/find). For checkboxes/radios pass a boolean; for selects pass the option value or visible text; otherwise a string.
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": {
"ref": "<ref>",
"value": "<value>",
"tabId": "<tabId>"
},
"name": "form_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Element ref from read_page/find | |
| tabId | Yes | Target tab ID (must be in the MCP group) | |
| value | Yes | Value to set (boolean for checkbox/radio) | |
| expect | No | Optional postcondition: observes the declared UI outcome after one action; failure never repeats input | |
| documentId | No | Bind a resolved target to this document; stale documents fail before mutation |