ZIm/crates/assistant_tools/src/open_tool/description.md
Richard Feldman 61be869352
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
2025-03-27 18:20:59 -04:00

413 B

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.