get_attachment
Download an attachment from a Bitbucket repository using its numeric ID. Returns file content for text attachments or size summary for binary files.
Instructions
Download an attachment from a repository by its numeric ID.
Returns content for text files or a size summary for binary files.
Args: project_key: The project key. repo_slug: The repository slug. attachment_id: The numeric attachment ID.
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": {
"project_key": "<project_key>",
"repo_slug": "<repo_slug>",
"attachment_id": "<attachment_id>"
},
"name": "get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_key | Yes | ||
| repo_slug | Yes | ||
| attachment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |