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.

ParameterRequiredDescription
pageNoPage number
pagelenNoResults per page

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 query to filter repositories by name or description (uses BBQL)
pageNoPage number
pagelenNoResults per page (defaults to 100 for search)
sortNoSort field, e.g. -updated_on for newest first, name for alphabetical

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: repo root)
refNoBranch, tag, or commit hash (defaults to main branch)
limitNoMaximum number of items to return (default: 50, max: 100)

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
file_pathPath to the file in the repository
refNoBranch, tag, or commit hash (defaults to main branch)
startNoStarting line number for pagination (1-based, default: 1)
limitNoMaximum number of lines to return (default: 1000, max: 10000)

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
commitCommit hash, branch, or tag to start history from
pathPath to the file in the repository
pageNoPage number
pagelenNoResults per page

Example prompt:

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