# Commands Reference ## Server & Daemon ``` pinchtab server # Start the full server (dashboard + API) pinchtab server --extension /path/to/ext # Start with extension (repeatable) pinchtab bridge # Start bridge-only server (no dashboard) pinchtab mcp # Start the MCP stdio server pinchtab daemon # Show daemon status pinchtab daemon install # Install as background service pinchtab daemon start # Start the background service pinchtab daemon stop # Stop the background service pinchtab daemon restart # Restart the background service pinchtab daemon uninstall # Remove the background service ``` ## Navigation ``` pinchtab nav # Navigate to URL in current tab pinchtab nav --new-tab # Navigate in a new tab pinchtab nav --tab # Navigate a specific tab pinchtab nav --block-images # Navigate with image blocking pinchtab nav --block-ads # Navigate with ad blocking pinchtab quick # Navigate + snapshot accessibility tree ``` ``` pinchtab back # Go back in browser history pinchtab back --tab # Go back in specific tab pinchtab forward # Go forward in browser history pinchtab forward --tab # Go forward in specific tab pinchtab reload # Reload current page pinchtab reload --tab # Reload specific tab ``` Hidden aliases: `goto`, `navigate`, `open` ## Tab Management ``` pinchtab tab # List all tabs pinchtab tab # Focus tab by ID pinchtab tab new # Open a new empty tab pinchtab tab new # Open a new tab with URL pinchtab tab close # Close tab by ID ``` Alias: `tabs` Numeric arguments are resolved as 1-based tab indices via `/tabs`. Non-numeric arguments are passed through as tab IDs. ## Interaction ``` pinchtab click # Click element by ref pinchtab click --css # Click element by CSS selector pinchtab click --wait-nav # Click and wait for navigation pinchtab dblclick # Double-click element by ref pinchtab dblclick --css # Double-click element by CSS selector pinchtab type # Type into element pinchtab fill # Fill input directly (no keystroke events) pinchtab press # Press key (Enter, Tab, Escape...) pinchtab hover # Hover over element pinchtab hover --css # Hover by CSS selector pinchtab select # Select dropdown option pinchtab scroll # Scroll to element or by pixel amount ``` ## Page Analysis ``` pinchtab snap # Snapshot accessibility tree pinchtab snap -i # Interactive elements only pinchtab snap -c # Compact output pinchtab snap -d # Diff from previous snapshot pinchtab snap --selector # Scope to CSS selector pinchtab snap --max-tokens # Limit token budget pinchtab snap --depth # Limit tree depth pinchtab snap --text # Text output format pinchtab text # Extract page text (markdown) pinchtab text --raw # Raw text extraction pinchtab find # Find elements by natural language pinchtab find --threshold <0-1> # Minimum similarity score pinchtab find --explain # Show score breakdown pinchtab find --ref-only # Output just the element ref pinchtab eval # Evaluate JavaScript ``` ## Capture & Export ``` pinchtab screenshot # Take a screenshot (JPEG) pinchtab screenshot -o # Save to specific path (format based on extension) pinchtab screenshot -q <0-100> # Set JPEG quality pinchtab pdf # Export page as PDF pinchtab pdf -o # Save PDF to path pinchtab pdf --landscape # Landscape orientation pinchtab pdf --scale # Page scale (e.g. 0.5) pinchtab pdf --paper-width # Paper width in inches pinchtab pdf --paper-height # Paper height in inches pinchtab pdf --page-ranges # Page ranges (e.g. 1-3) pinchtab download # Download a file pinchtab download -o # Download to specific path pinchtab upload # Upload a file pinchtab upload -s # Upload to specific file input ``` ## Instances & Profiles ``` pinchtab instances # List running instances pinchtab instance start # Start a new browser instance pinchtab instance start --profile # Start with specific profile pinchtab instance start --port # Start on specific port pinchtab instance start --extension /path/to/ext # Load extension (repeatable) pinchtab instance stop # Stop an instance pinchtab instance logs # View instance logs pinchtab instance navigate # Navigate instance to URL pinchtab profiles # List browser profiles pinchtab health # Check server health ``` ## Configuration ``` pinchtab config show # Show current configuration pinchtab config init # Create default config file pinchtab config path # Show config file path pinchtab config validate # Validate config file pinchtab config get # Get a config value pinchtab config set # Set a config value pinchtab config patch # Patch config with JSON ``` ## Security ``` pinchtab security # Review security posture pinchtab security up # Apply recommended security defaults pinchtab security down # Relax security settings ``` ## Global Flags Most browser commands support `--tab ` to target a specific tab. Commands with `--tab`: nav, snap, click, dblclick, type, fill, press, hover, scroll, select, eval, screenshot, pdf, find, text ``` pinchtab --tab # Run command against specific tab pinchtab --help # Show help pinchtab --version # Show version ```