erpnext_download_redmine_attachment
Download a Redmine issue attachment to local disk by ID or URL, returning the saved path, metadata, and text preview for supported files.
Instructions
Download a file attachment from a Redmine issue to local disk (e.g. an issue's SQL script, spreadsheet, or document). Accepts the attachment id or a Redmine attachment download URL. Returns the saved file path, metadata, and — for text-like files — a content preview. Requires REDMINE_API_KEY.
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": "<attachment>"
},
"name": "erpnext_download_redmine_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save_dir | No | Directory to save into. Default: OS temp/devflow-attachments/redmine. | |
| attachment | Yes | Attachment id (e.g. "267232") or a download URL (e.g. ".../attachments/download/267232/Script.txt"). | |
| preview_chars | No | Max characters of text preview (default: 4000). | |
| include_text_preview | No | For text-like files, include a preview of the content in the response (default: true). |