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</usage>
 9
10<features>
11- Displays contents with line numbers
12- Can read from any file position using offset
13- Handles large files by limiting lines read
14- Auto-truncates very long lines for display
15- Suggests similar filenames when file not found
16</features>
17
18<limitations>
19- Max file size: 250KB
20- Default limit: 2000 lines
21- Lines >2000 chars truncated
22- Cannot display binary files/images (identifies them)
23</limitations>
24
25<cross_platform>
26
27- Handles Windows (CRLF) and Unix (LF) line endings
28- Works with forward slashes (/) and backslashes (\)
29- Auto-detects text encoding for common formats
30  </cross_platform>
31
32<tips>
33- Use with Glob to find files first
34- For code exploration: Grep to find relevant files, then View to examine
35- For large files: use offset parameter for specific sections
36</tips>