# Browser Pilot Commands Reference Complete reference for all Browser Pilot CLI commands using the project-local wrapper script. ## Command Entry Points Browser Pilot uses the CLI wrapper script `.browser-pilot/bp`: **Single command execution:** ```bash node .browser-pilot/bp [options] ``` **Chain mode (multiple commands):** ```bash node .browser-pilot/bp chain [args1] [args2] ... ``` **Daemon management:** ```bash node .browser-pilot/bp daemon- ``` ## Single Command Execution ### Navigation Commands **navigate** - Navigate to URL (auto-generates interaction map on page load) ```bash node .browser-pilot/bp navigate -u "" ``` **back** - Navigate back in history ```bash node .browser-pilot/bp back ``` **forward** - Navigate forward in history ```bash node .browser-pilot/bp forward ``` **reload** - Reload current page (regenerates interaction map) ```bash node .browser-pilot/bp reload ``` ### Interaction Commands **click** - Click an element Smart Mode (Recommended): ```bash node .browser-pilot/bp click --text "" [options] Options: --text Text content to search for --index Select nth match (1-based) --type Element type filter (supports aliases: "input" → "input-*") --tag HTML tag filter (e.g., "button", "input") --viewport-only Only search visible elements --verify Verify action success Examples: node .browser-pilot/bp click --text Submit node .browser-pilot/bp click --text "Sign In" --type button node .browser-pilot/bp click --text Delete --index 2 node .browser-pilot/bp click --text Search --type input # Auto-expands to all input types node .browser-pilot/bp click --text Submit --tag button # Tag-based search ``` Direct Mode (fallback for unique IDs): ```bash node .browser-pilot/bp click -s "" node .browser-pilot/bp click -u "" -s "" ``` **fill** - Fill input field Smart Mode (Recommended): ```bash node .browser-pilot/bp fill --text "