view.md

 1Reads and displays file contents with line numbers for examining code, logs, or text data.
 2
 3<usage>
 4- Provide file path to read
 5- Optional offset: start reading from specific line (0-based)
 6- Optional limit: control lines read (default 2000)
 7- Don't use for directories (use LS tool instead)
 8- Supports image files (PNG, JPEG, GIF, BMP, SVG, WebP)
 9</usage>
10
11<features>
12- Displays contents with line numbers
13- Can read from any file position using offset
14- Handles large files by limiting lines read
15- Auto-truncates very long lines for display
16- Suggests similar filenames when file not found
17- Renders image files directly in terminal
18</features>
19
20<limitations>
21- Max file size: 5MB
22- Default limit: 2000 lines
23- Lines >2000 chars truncated
24- Binary files (except images) cannot be displayed
25</limitations>
26
27<cross_platform>
28- Handles Windows (CRLF) and Unix (LF) line endings
29- Works with forward slashes (/) and backslashes (\)
30- Auto-detects text encoding for common formats
31</cross_platform>
32
33<tips>
34- Use with Glob to find files first
35- For code exploration: Grep to find relevant files, then View to examine
36- For large files: use offset parameter for specific sections
37- View tool automatically detects and renders image files
38</tips>