Answer: Use the offset and limit parameters to page through large results; for example, read src/server.ts starting at line 120 and return at most 80 lines. Status: Overdue (check was due 2026-11-20T13:37:29Z and has not succeeded) Entry: tool/opencode/features/read-file-line-range Revision: 1 Digest: sha256:b529cf2931dfce3f (changes whenever the content changes) Timeline: Created: 2026-11-13T03:58:16Z Last changed: 2026-11-13T03:58:16Z Last verified: 2026-11-19T13:37:29Z Next check: 2026-11-20T13:37:29Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Unit | Source | As of parameters | offset and limit | | [1] | 2026-11-19 example | Read src/server.ts starting at line 120 and return at most 80 lines | | [1] | 2026-11-19 line limit per page | 2,000 lines | lines | [1] | 2026-11-19 size limit per page | 50 KiB | KiB | [1] | 2026-11-19 line shortening threshold | 2,000 characters | characters | [1] | 2026-11-19 Sources: [1] opencode. "Tools | OpenCode". https://opencode.ai/docs/tools/ Role: primary. Accessed: 2026-11-19T13:37:29Z Quote: "use offset and limit to page through large results" (Supports: parameters) Quote: "Read src/server.ts starting at line 120 and return at most 80 lines" (Supports: example) Quote: "limited to 2,000 lines and 50 KiB per page" (Supports: line limit per page, size limit per page) Quote: "Individual lines are shortened after 2,000 characters" (Supports: line shortening threshold) Snapshot SHA-256: 87641bde20c614458e91d184df4584731eb549e55efd40138a7bd7aee834e14f (captured 2026-11-13T03:58:16Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:58:16Z, so the values verified then were kept. Cross-check: not-available at 2026-11-19T13:37:29Z. No independent second source is configured for this entry Last successful check: 2026-11-19T13:37:29Z Last attempt: 2026-11-19T13:37:29Z Notes and limitations: Extracted automatically from a single official source (section "Read"). Related: https://latestn.com/tool/opencode/features/register-commands-panels How do I add a command or panel to the opencode GUI via a plugin? https://latestn.com/tool/opencode/features/use-web-search How do opencode members use web search in a prompt? https://latestn.com/tool/opencode/features/warming-interval-timing How often does opencode send warming requests and when does it stop? https://latestn.com/tool/opencode/features/grep-search-contents How do I search file contents with opencode's grep tool? https://latestn.com/tool/opencode/features/opencode-interfaces What interfaces does opencode come in (CLI, desktop, web)? https://latestn.com/tool/opencode/features/providers-api-endpoints Which API endpoints does the opencode Console Providers API support? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:58:16Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/features/read-file-line-range/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/opencode/features/read-file-line-range POST: https://latestn.com/dispute/tool/opencode/features/read-file-line-range with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/features/read-file-line-range?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I read a specific range of lines from a file with opencode's read tool? Revision 1, last verified 2026-11-19T13:37:29Z. https://latestn.com/tool/opencode/features/read-file-line-range (accessed 2026-11-21T09:52:39Z). @misc{LatestN_tool_opencode_features_read_file_line_range_r1, title = {How do I read a specific range of lines from a file with opencode's read tool?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/features/read-file-line-range}}, note = {Revision 1; digest sha256:b529cf2931dfce3f; last verified 2026-11-19T13:37:29Z; accessed 2026-11-21T09:52:39Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/opencode/features/read-file-line-range