diff options
| author | adamdotdevin <[email protected]> | 2025-08-13 10:13:57 -0500 |
|---|---|---|
| committer | adamdotdevin <[email protected]> | 2025-08-13 10:13:57 -0500 |
| commit | 7d54f893c97330ccbb9e68ab775d68be288f1017 (patch) | |
| tree | 00ea3b22d4647330cf2dcfe506d23f6a7e3c2329 | |
| parent | e1f80c006761fd0d0f5eda36ce727970a3d4b272 (diff) | |
| download | opencode-7d54f893c97330ccbb9e68ab775d68be288f1017.tar.gz opencode-7d54f893c97330ccbb9e68ab775d68be288f1017.zip | |
fix: update read tool description to exclude binary/image files
| -rw-r--r-- | packages/opencode/src/tool/read.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/opencode/src/tool/read.txt b/packages/opencode/src/tool/read.txt index be9e9e0c3..3904c0939 100644 --- a/packages/opencode/src/tool/read.txt +++ b/packages/opencode/src/tool/read.txt @@ -7,7 +7,6 @@ Usage: - You can optionally specify a line offset and limit (especially handy for long files), but it's recommended to read the whole file by not providing these parameters - Any lines longer than 2000 characters will be truncated - Results are returned using cat -n format, with line numbers starting at 1 -- This tool allows opencode to read images (eg PNG, JPG, etc). When reading an image file the contents are presented visually as opencode is a multimodal LLM. +- This tool cannot read binary files, including images - You have the capability to call multiple tools in a single response. It is always better to speculatively read multiple files as a batch that are potentially useful. -- You will regularly be asked to read screenshots. If the user provides a path to a screenshot ALWAYS use this tool to view the file at the path. This tool will work with all temporary file paths like /var/folders/123/abc/T/TemporaryItems/NSIRD_screencaptureui_ZfB1tD/Screenshot.png - If you read a file that exists but has empty contents you will receive a system reminder warning in place of file contents. |
