# pi-open-browser

A pi extension that opens URLs in the user's default browser.

## Installation

Install in pi:
```
pi packages install pi-open-browser
```

## Usage

The plugin adds a `show_user_in_browser` tool that can be used to open any URL in the user's default browser.

The tool is automatically invoked when the user asks to:
- "Show me this in a browser"
- "Open this URL in my browser"
- "View this webpage"
- Any similar request to see something in a browser

## Tool: `show_user_in_browser`

**Parameters:**
- `url` (string, required): The URL to open in the browser

**Example:**
```
User: "Show me https://example.com in my browser"
→ Tool opens example.com in the default browser
```

## Security

- Only `http:` and `https:` URLs are allowed
- Invalid URLs will throw an error
- Uses the system's default browser

## License

MIT
