upload_attachment
Upload a file attachment to a Bitbucket repository and return a markdown reference to embed in pull request comments or descriptions.
Instructions
Upload a file attachment to a repository. Returns a markdown reference to embed in PR comments or descriptions.
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>",
"filePath": "<filePath>"
},
"name": "upload_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Project key. Defaults to BITBUCKET_DEFAULT_PROJECT. | |
| filePath | Yes | Absolute path to the file on the local filesystem. | |
| repository | Yes | Repository slug. |