Documentation Index
Fetch the complete documentation index at: https://mintlify.com/szymdzum/browser-debugger-cli/llms.txt
Use this file to discover all available pages before exploring further.
Synopsis
Description
Thebdg dom form command provides intelligent form discovery with:
- Semantic field labels - Human-readable labels from
<label>,aria-label, placeholder, or name attributes - Current values - Pre-filled or user-entered values
- Validation state - Required fields, patterns, min/max constraints
- Suggested commands - Ready-to-use
bdg dom fillcommands for each field - Submit detection - Identifies submit buttons and form action URLs
Options
Show all forms expanded (default: collapsed after first form)
Quick scan - field names, types, and required status only (minimal output)
Output in JSON format for programmatic consumption
Output Format
Human-readable Output
JSON Output
Examples
Basic Form Discovery
Quick Scan (Brief Mode)
JSON Output for Automation
Show All Forms Expanded
Field Types Detected
The command recognizes these HTML input types:text,email,password,url,tel,numberdate,time,datetime-local,month,weekcheckbox,radio,select,textareafile,color,range,search,hidden
Validation Detection
Form discovery extracts validation constraints:- Required -
requiredattribute - Pattern -
patternattribute (regex) - Min/Max Length -
minlength,maxlengthattributes - Min/Max Value -
min,maxattributes (for number/date inputs) - Step -
stepattribute (for number inputs)
Use Cases
Agent-Driven Form Filling
Form Validation Testing
Multi-Step Form Discovery
Exit Codes
Success - Forms discovered
No forms found on page
Session not active - start a session first
CDP connection timeout
Tips
The suggested commands use CSS selectors optimized for stability (prefer
id, name, then data-* attributes over class names).Related Commands
Fill Fields
Execute fill commands from form discovery
Submit Forms
Submit forms after filling fields
Forms Guide
Complete form interaction workflow
Testing Forms
Recipe for form validation testing

