Download an attachment
download_attachmentResolve the download URL for a ticket attachment. Provide outputPath to save the file to a local path.
Instructions
Resolve the download URL of a ticket attachment and, when outputPath is given, save the file to that local path. Without outputPath only the URL is returned.
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": {
"ticketId": "<ticketId>",
"fileId": "<fileId>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | Access token of a private project. Only needed without an API key, or for projects behind a private link. | |
| fileId | Yes | File id of the attachment. | |
| ticketId | Yes | Ticket the file belongs to. | |
| outputPath | No | Absolute path to write the file to. Existing files are overwritten. |