pi-open-browser
v0.0.0
Published
A pi extension to open URLs in the user's default browser
Downloads
128
Maintainers
Readme
pi-open-browser
A pi extension that opens URLs in the user's default browser.
Installation
Install in pi:
pi packages install pi-open-browserUsage
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 browserSecurity
- Only
http:andhttps:URLs are allowed - Invalid URLs will throw an error
- Uses the system's default browser
License
MIT
