Add Open Tool (#27499)

I've seen models try to run `open` in Bash. This is a cross-platform
version of that.

<img width="634" alt="Screenshot 2025-03-26 at 10 27 40 AM"
src="https://github.com/user-attachments/assets/b18cb50f-6e2f-4770-b15c-1040916a420a"
/>

Release Notes:

- N/A
This commit is contained in:
Richard Feldman 2025-03-27 18:20:59 -04:00 committed by GitHub
parent 7537f0557f
commit 61be869352
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 80 additions and 0 deletions

View file

@ -0,0 +1,6 @@
This tool opens a file or URL with the default application associated with it on the user's operating system:
- On macOS, it's equivalent to the `open` command
- On Windows, it's equivalent to `start`
- On Linux, it uses something like `xdg-open`, `gio open`, `gnome-open`, `kde-open`, `wslview` as appropriate
For example, it can open a web browser with a URL, open a PDF file with the default PDF viewer, etc.