get_file_content
Read file content from a GitFlic repository by specifying owner, project, path, and commit hash or branch. Returns plain text for files up to 15 MB; binary files are not supported.
Instructions
Read the contents of a single file from a GitFlic repository as plain text. Supports files up to 15 MB. Cannot read binary files (images, archives) — returns 400 for those. The commitHash parameter is required and accepts a branch name (e.g. 'main') or a specific commit hash.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Full file path with extension (e.g. src/index.ts) | |
| owner | Yes | Project owner alias | |
| project | Yes | Project alias | |
| commitHash | Yes | Commit hash or branch name (required by API) |