bb_get_file
Retrieve file content from a Bitbucket repository by specifying the workspace, repository, file path, and optional revision. Returns raw text for direct access and integration needs.
Instructions
Retrieves the content of a file from a Bitbucket repository identified by workspaceSlug
and repoSlug
. Specify the file to retrieve using the filePath
parameter. Optionally, you can specify a revision
(branch name, tag, or commit hash) to retrieve the file from - if omitted, the repository's default branch is used. Returns the raw content of the file as text. Requires Bitbucket credentials.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
filePath | Yes | Path to the file within the repository. Example: "README.md" or "src/main.js" | |
repoSlug | Yes | Repository slug containing the file. Example: "project-api" | |
revision | No | Optional branch name, tag, or commit hash to retrieve the file from. If omitted, uses the default branch. | |
workspaceSlug | No | Workspace slug containing the repository. If not provided, the system will use your default workspace. Example: "myteam" |