submit_form
Submit a form using requestSubmit() to trigger framework submit listeners and HTML validation, falling back to legacy methods.
Instructions
Submit a form, honouring framework-level submit listeners.
Uses ``form.requestSubmit()`` so React/Vue/Formik ``onSubmit``
handlers fire and HTML validation runs, falling back to a bubbling
``submit`` event and finally ``form.submit()`` for ancient pages.
Returns an error if the selector matches no form.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "submit_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | form |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |