Get attachment
get_attachmentFetch a specific attachment from Bugzilla by ID. Text-based content is returned decoded, while binary attachments are returned as base64 when include_content is enabled.
Instructions
Fetch a single attachment by ID. Text-based attachments (patches, logs, text, JSON, HTML, source code) are returned decoded as text; binary attachments are returned as base64 when include_content is set.
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": {
"attachment_id": "<attachment_id>"
},
"name": "get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_chars | No | Truncate decoded text content to this many characters | |
| attachment_id | Yes | ||
| include_content | No | Include the attachment content |