jade.read_range
Read files by line range or in full, including multiple ranges in one call. Use for configs, source snippets, or dependency files.
Instructions
Read a file verbatim, whole or by line range — the replacement for cat and sed -n. Omit both line numbers to read the whole file, which is how to read go.mod, a Makefile, or any JSON/YAML/TOML config that has no symbols to address. An end line past the end of the file reads to the end. A dependency's source reads as dep:/, read-only. Several ranges, in one file or many, go in one call: {"ranges": [{"path": "a.go", "lines": "280-400"}, {"path": "b.go", "lines": "700-760"}]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Repository-relative or workspace-relative file path. | |
| lines | No | Line range: "280-400", "280-" to the end, or "280". Omit to read the whole file. | |
| budget | No | Size of the read in tokens (default 5000). Cut at whole lines; the rest is behind continue=<handle>. | |
| ranges | No | Several reads in one call, instead of path. A range that fails reports its error without failing the others. | |
| continue | No | Handle from a cut read: the rest of it. |