Improve the read_file tool prompt for long files (#34542)

Closes [#ISSUE](https://github.com/zed-industries/zed/issues/31780)

Release Notes:

- Enhanced `read_file` tool call result message for long files.
This commit is contained in:
Adam 2025-07-16 18:32:58 +02:00 committed by GitHub
parent 9ab3d55211
commit 313f5968eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -285,7 +285,10 @@ impl Tool for ReadFileTool {
Using the line numbers in this outline, you can call this tool again
while specifying the start_line and end_line fields to see the
implementations of symbols in the outline."
implementations of symbols in the outline.
Alternatively, you can fall back to the `grep` tool (if available)
to search the file for specific content."
}
.into())
}