git_read_file
Access file contents securely from any Git revision, index, or working tree, with configurable byte limits for controlled reads.
Instructions
Read a bounded file from a revision, the index, or the working tree.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| target | No | revision | |
| 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 |