download_attachment
Download a Redmine attachment by ID and save it to a specified path, creating parent directories automatically.
Instructions
Download an attachment and save it to the specified path.
Args:
attachment_id: The ID of the attachment to download
save_path: Absolute path where the file should be saved
Returns:
Dictionary containing:
- success: True if download succeeded
- file_path: The path where the file was saved
- filename: Original filename from Redmine
- size: File size in bytes
Note:
The parent directory will be created automatically if it doesn't exist.
The caller is responsible for validating save_path to prevent
path traversal attacks or writing to sensitive locations.
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>",
"save_path": "<save_path>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save_path | Yes | ||
| attachment_id | Yes |