bb_create_file
Create a new file in a Bitbucket repository by providing project key, repo slug, path, branch, and content. Returns the commit ID and file path, with an optional commit message.
Instructions
Create a new file at 'path' on 'branch' with 'content'. Optional 'message' is the commit message (default = 'Create '). Returns the new commit id and file path.
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": {
"projectKey": "<projectKey>",
"repoSlug": "<repoSlug>",
"path": "<path>",
"branch": "<branch>",
"content": "<content>"
},
"name": "bb_create_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | New file path, e.g. 'docs/README.md' | |
| branch | Yes | Branch to push to | |
| content | Yes | Full file content | |
| message | No | Commit message (default: 'Create <path>') | |
| repoSlug | Yes | ||
| projectKey | Yes |