phabricator_repository_file_content
Retrieve file contents from a Phabricator Diffusion repository by providing a file path and commit hash or branch name. Returns base64-encoded content, or indicates if the file is too large.
Instructions
Read file contents from a Diffusion repository at a given path and commit/branch. Returns the file content as a base64-encoded blob. If the file is too large, returns tooHuge: true with no content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path in the repository (e.g., "src/index.ts") | |
| repository | No | Repository callsign, short name, or PHID | |
| commit | Yes | Commit hash or branch name | |
| branch | No | Branch name | |
| timeout | No | Query timeout in seconds | |
| byteLimit | No | Maximum file size in bytes to return |