read_file
Read the contents of a file in an app. Maximum file size: 1MB. Binary files are not supported. By default, reads the entire file starting from the beginning. You can optionally specify a line offset and limit (especially handy for long files), but it's recommended to read the whole file by not providing these parameters. Results are returned using cat -n format, with line numbers starting at 1.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | App ID (UUID) or subdomain | |
| path | Yes | File path to read (e.g. "index.js", "src/app.ts") | |
| limit | No | Number of lines to read. Only provide if the file is too large to read at once. | |
| offset | No | Line number to start reading from (1-indexed). Only provide if the file is too large to read at once. |