Skip to main content
Read file content. Supports text files, PDF, Office documents (Word / Excel / PPT), images (returns metadata), and more.

Dependencies

No extra dependencies, available by default.

Parameters

Output format

Each line is prefixed with its line number and a pipe, so the Agent can locate positions and so output matches search_files:
The line numbers are display aids, not file content. When editing with edit, do not include prefixes like 1| in oldText / newText - they will be rejected.
A single read is capped at 2000 lines or 50KB; beyond that the output is truncated and ends with a hint on using offset to continue.

Credential protection

~/.cow/.env, which holds API keys, cannot be read through this tool. Use the env_config tool instead.

Use Cases

  • View configuration files, log files
  • Read code files for analysis
  • Extract text from PDF, Word and Excel files
  • Check image/video file info