feat: adjust read tool so that it can handle dirs too (#13090)

This commit is contained in:
Aiden Cline
2026-02-11 13:23:00 -06:00
committed by GitHub
parent e3471526f4
commit 6b4d617df0
5 changed files with 115 additions and 22 deletions

View File

@@ -32,6 +32,9 @@ description: Use this when you are working on file operations like reading, writ
- Decode tool stderr with `Bun.readableStreamToText`.
- For large writes, use `Bun.write(Bun.file(path), text)`.
NOTE: Bun.file(...).exists() will return `false` if the value is a directory.
Use Filesystem.exists(...) instead if path can be file or directory
## Quick checklist
- Use Bun APIs first.