bb_write_file
Create or update a file in a Bitbucket repository by providing its path and full content. Choose a branch and commit message to save the change directly to the repo.
Instructions
Write or update a file in a Bitbucket repository
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": {
"path": "<path>",
"content": "<content>"
},
"name": "bb_write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file within the repository | |
| branch | No | Branch to commit to | main |
| content | Yes | Full new contents of the file | |
| message | No | Commit message | Update file via MCP |
| repo_slug | No | Repository slug/name; defaults to the repo detected from the current directory's git remote | |
| workspace | No | Bitbucket workspace |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |