@scottrbk/browser-screenshot

A pi extension that lets the agent take screenshots of web pages

Packages

Package details

extension

Install @scottrbk/browser-screenshot from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@scottrbk/browser-screenshot
Package
@scottrbk/browser-screenshot
Version
1.0.0
Published
Jul 12, 2026
Downloads
24/mo · 24/wk
Author
scottrbk
License
MIT
Types
extension
Size
4.5 KB
Dependencies
1 dependency · 0 peers
Pi manifest JSON
{
  "extensions": [
    "./browser-screenshot.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

browser-screenshot

A pi extension that lets the agent take screenshots of web pages.

Install

pi install git:github.com/ScottRBK/browser-screenshot

Or clone and load directly:

git clone https://github.com/ScottRBK/browser-screenshot.git
cd browser-screenshot
npm install
npx playwright install chromium

Usage

pi -e ./browser-screenshot.ts "screenshot https://example.com and describe the layout"

The screenshot tool saves a PNG to /tmp and returns the path. The agent reads the image from there to analyse it.

Parameters

Param Type Default Description
url string required The page to screenshot
fullPage boolean false Capture entire scrollable page
width integer 1920 Viewport width
height integer 1080 Viewport height

Requirements

  • Playwright Chromium browser (npx playwright install chromium)