# pi-exploitsearch

Search [preview.is](https://preview.is) for real exploit tricks and bypasses — each hit links to a write-up.

## Install

```bash
pi install npm:@xaccefy/pi-exploitsearch
```

## Configuration

```bash
export PREVIEW_IS_API_KEY="rk_your_api_key_here"
```

Get a key there. Without one, the tool tells you to set it up.

## Tool: `ExploitSearch`

| Param | Required | Default | Notes |
|-------|----------|---------|-------|
| `query` | yes | — | Technique / CVE / primitive |
| `limit` | no | 5 | 1–50 |
| `minScore` | no | 0.1 | 0–1 relevance floor |

**Rule:** always link the URLs; don't make up exploit steps from memory.

## Development

```bash
bun test packages/pi-exploitsearch
bun run typecheck
```
