Skip to content

Repository Management

8 tools for workspace and repository discovery, directory browsing, and file reading.


Discover all Bitbucket workspaces accessible to the authenticated user.

Parameters: None required.

Example prompt:

“List all my accessible workspaces”


Get detailed information about a specific workspace.

ParameterRequiredDescription
workspaceWorkspace slug or UUID

Example prompt:

“Get details for the myworkspace workspace”


List all repositories within a workspace, with pagination support.

ParameterRequiredDescription
workspaceWorkspace slug
pageNoPage number (default: 1)
pagelenNoResults per page

Example prompt:

“List repositories in myworkspace”


Get detailed information about a specific repository.

ParameterRequiredDescription
workspaceWorkspace slug
repo_slugRepository slug

Example prompt:

“Get details for myworkspace/myrepo”


Search for repositories by name or description within a workspace using server-side BBQL filtering.

ParameterRequiredDescription
workspaceWorkspace slug
querySearch term

Example prompt:

“Search for repositories containing ‘keycloak’ in myworkspace”


Explore the directory structure of a repository. Supports branch names with slashes (e.g., feature/SSP-1024). Branch names are automatically resolved to commit SHAs for subdirectory browsing.

ParameterRequiredDescription
workspaceWorkspace slug
repo_slugRepository slug
pathNoDirectory path to browse (default: root)
branchNoBranch name or commit SHA

Example prompt:

“Browse the tests directory in feature/deployment-fixes branch”


Read the content of a file with pagination support. Reads up to 10,000 lines per request.

ParameterRequiredDescription
workspaceWorkspace slug
repo_slugRepository slug
pathFile path within the repository
branchNoBranch name or commit SHA
start_lineNoFirst line to read (1-based)
end_lineNoLast line to read

Example prompts:

“Read lines 100–200 of src/app.py from myworkspace/myrepo”

“Show me the package.json file from the develop branch”


Get the commit history for a specific file, showing which commits modified it.

ParameterRequiredDescription
workspaceWorkspace slug
repo_slugRepository slug
pathFile path
branchNoBranch name

Example prompt:

“Get the commit history for src/components/Header.tsx