Clone Bitbucket Repository
bb_cloneClone a Bitbucket repository to your local filesystem by providing the repository slug and target path. Uses SSH (preferred) or HTTPS for authentication.
Instructions
Clone a Bitbucket repository to your local filesystem using SSH (preferred) or HTTPS.
Provide repoSlug and targetPath (absolute path). Clones into targetPath/repoSlug. SSH keys must be configured; falls back to HTTPS if unavailable.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repoSlug": "<repoSlug>",
"targetPath": "<targetPath>"
},
"name": "bb_clone"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspaceSlug | No | Bitbucket workspace slug containing the repository. If not provided, the tool will use your default workspace (either configured via BITBUCKET_DEFAULT_WORKSPACE or the first workspace in your account). Example: "myteam" | |
| repoSlug | Yes | Repository name/slug to clone. This is the short name of the repository. Example: "project-api" | |
| targetPath | Yes | Directory path where the repository will be cloned. IMPORTANT: Absolute paths are strongly recommended (e.g., "/home/user/projects" or "C:\Users\name\projects"). Relative paths will be resolved relative to the server's working directory, which may not be what you expect. The repository will be cloned into a subdirectory at targetPath/repoSlug. Make sure you have write permissions to this location. |