# @hyperprior/pi-browser

Lightweight page fetch + extraction helper (`hyperpi_browser`).

## Installation

```bash
pi install npm:@hyperprior/pi-browser
```

## Features

- `open` / `navigate`: fetch a URL and cache extracted page data
- `snapshot`: render a concise page summary from the cached result
- `extract`: return extracted readable text content
- `links`: list links from the active page
- `close`: clear active session cache

## Parameters

- `action`: `open` | `navigate` | `snapshot` | `extract` | `links` | `close`
- `url`: target URL (required for `open`/`navigate`, optional if session exists)
- `timeout`: request timeout in ms
- `include_meta`: include metadata in `open`/`snapshot` responses
- `include_text`: include extracted text in `snapshot`
- `max_links`: max links for `links`

## Notes

This is a minimal browser-style plugin built for deterministic command-line workflows and does not launch a headful browser process.

All packages in this monorepo are namespaced under `@hyperprior` and built to be loaded as individual pi packages.
