Skip to content

Read

Retrieves file contents from the filesystem.

Runtime Comparison

Aspect Claude Code Opencode
Tool name Read read
Path parameter file_path (absolute) file_path (relative or absolute)
Line limits offset, limit for pagination offset, limit for pagination
Binary files Images rendered visually Returns error
PDF support Yes No
Jupyter support Yes (.ipynb) No

Both runtimes require reading a file before editing it. This catches cases where the file changed since the conversation started.