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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"owner": "<owner>",
"project": "<project>",
"file": "<file>",
"commitHash": "<commitHash>"
},
"name": "get_file_content"
}
}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) |