git_read_file
Retrieve file contents from a Git repository at a specified revision, with a configurable size limit to ensure bounded reads.
Instructions
Read a bounded file blob at a revision.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| maxBytes | No | ||
| revision | No | HEAD | |
| repositoryId | Yes | ID returned by git_list_repositories |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| output | Yes | ||
| truncated | Yes |