fork_repository
Create a copy of a repository in a specified target project. Provide source repository slug and optionally set target project key.
Instructions
Fork a repository into a target project. Creates a copy of the source repository in the specified target project.
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": {
"repository": "<repository>"
},
"name": "fork_repository"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the forked repository. Defaults to the source repository name. | |
| project | No | Source project key. Defaults to BITBUCKET_DEFAULT_PROJECT. | |
| repository | Yes | Source repository slug. | |
| target_project | No | Target project key where the fork will be created. Defaults to the user's personal project. |