gluecron_read_file
Read-only
Read a file from a repo at a given ref. Mirrors GET /api/v2/repos/:owner/:repo/contents/:path. Returns {path, size, content, encoding, totalLines}. Pass start_line / end_line (1-based, inclusive) to read only part of a text file. A text file over ~60 KB read with no range returns its first ~60 KB of whole lines with truncated: true, startLine/endLine and a hint — ask for the next range to read on.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch / tag / sha (default HEAD) | |
| path | Yes | ||
| repo | Yes | ||
| owner | Yes | ||
| encoding | No | 'utf8' (default) or 'base64' | |
| end_line | No | Last line to return (1-based, inclusive; clamped to the file's length). Text files only. | |
| start_line | No | First line to return (1-based, inclusive). Text files only. |