test_form_validation
Audit a page's form validation: locate forms, list required fields, and collect error messages from invalid fields and custom error elements to verify client-side validation.
Instructions
Audit a page's form validation: locate forms, list their required fields, and collect messages from :invalid fields and custom error elements. Returns the per-form field/validation details. Use to verify client-side validation behaves as intended. Works on a session or a URL.
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": "test_form_validation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to test (use this or session_id) | |
| project | No | Project name (optional). With a project: runs in its shared, authenticated context. Without: runs in an isolated context (no shared cookies/login). | |
| session_id | No | Session ID (use this or url) | |
| form_selector | No | CSS selector to target specific form(s) (default: 'form') |