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:
parent
7537f0557f
commit
61be869352
6 changed files with 80 additions and 0 deletions
6
crates/assistant_tools/src/open_tool/description.md
Normal file
6
crates/assistant_tools/src/open_tool/description.md
Normal 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.
|
Loading…
Add table
Add a link
Reference in a new issue