Evidence and archive

read.txt · part 1

Full reference
Topics
Status
Showing all 1

1 text occurrences from packages/opencode/src/tool/read.txt, part 1. Every entry preserves the shipped literal and its saved verdict or selection reason.

File contents and all parts · All files

Shipped text

Read a file or directory from the local filesystem. If the path does not exist,

Source: packages/opencode/src/tool/read.txt, characters 0–1158, SHA-256 98ee843341c2dab2.

Jev judged model-facing (confidence 0.93; role tool). This is a classifier judgment, not proof of delivery.

Readable text: Read a file or directory from the local filesystem. If the path does not exist, an error is returned. Usage: - The filePath parameter should be an absolute path. - By default, this tool returns up to 2000 lines from the start of the file. …

Read a file or directory from the local filesystem. If the path does not exist, an error is returned.

Usage:
- The filePath parameter should be an absolute path.
- By default, this tool returns up to 2000 lines from the start of the file.
- The offset parameter is the line number to start from (1-indexed).
- To read later sections, call this tool again with a larger offset.
- Use the grep tool to find specific content in large files or files with long lines.
- If you are unsure of the correct file path, use the glob tool to look up filenames by glob pattern.
- Contents are returned with each line prefixed by its line number as `<line>: <content>`. For example, if a file has contents "foo\n", you will receive "1: foo\n". For directories, entries are returned one per line (without line numbers) with a trailing `/` for subdirectories.
- Any line longer than 2000 characters is truncated.
- Call this tool in parallel when you know there are multiple files you want to read.
- Avoid tiny repeated slices (30 line chunks). If you need more context, read a larger window.
- This tool can read image files and PDFs and return them as file attachments.