← Catalog

pi-browser-tools

Browser automation tools for pi via Playwright (shared Chromium across sessions)

Package

Install

Install with PiG

pig install npm:pi-browser-tools

Install with Pi

pi install npm:pi-browser-tools
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "skills": [
    "./skills"
  ],
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.0 (README.md). PiG does not review it.

@pankajudhas81/pi-browser

Browser automation tools for pi via Playwright. Spawns a single shared Chromium on first use, persists cookies and logins, and exposes a snapshot-driven tool surface. All concurrent pi sessions attach to the same Chromium over CDP — a fresh login is visible everywhere.

Install

pi install npm:@pankajudhas81/pi-browser

Or reference a local checkout in settings.json:

{
    "packages": ["/absolute/path/to/pi-browser"]
}

Prerequisites

  • pi installed
  • Chromium is downloaded by Playwright on first launch

Tools

ToolPurpose
browser_navigate / browser_back / browser_forwardNavigation
browser_wait_forWait for text, URL, or load state
browser_snapshotAccessibility-tree snapshot with [ref=N] markers
browser_click / browser_type / browser_hover / browser_selectInteraction
browser_uploadAttach files to a file input
browser_screenshotPNG of viewport, full page, or element
browser_eval / browser_consoleRun JS / read console + page errors
browser_tabs_list / browser_tabs_new / browser_tabs_select / browser_tabs_closeTab management

Commands

CommandDescription
/browser-statusSummary of the shared browser (endpoint, tabs)
/browser-quitTerminate the shared Chromium across all pi sessions
/browser-headlessToggle headless mode for the next launch

Skill

The browser skill teaches the snapshot → ref → act → re-snapshot loop, login flow with the persistent profile, and when to screenshot vs snapshot.

License

MIT