path | string | Yes | File path within the workspace (e.g., ‘docs/readme.md’) |
version_id | string | No | Optional version ID to read a specific historical version instead of the current one. Use list_versions to find version IDs. This is read-only — it does not modify the file’s current state (unlike restore_version). |
line_start | number | No | First line to return (1-based, inclusive). Negative values count from the end (e.g., -10 = 10th line from the end). Only applies to text files. Omit to start from line 1. Example: line_start: 1, line_end: 10 returns the first 10 lines. |
line_end | number | No | Last line to return (1-based, inclusive). Negative values count from the end (e.g., -1 = last line). Only applies to text files. Omit to read through the last line. |