freeagent_download_attachment
Download a FreeAgent attachment by its URL-derived ID into FREEAGENT_ATTACHMENTS_DIR; clashing filenames get a ' (n)' suffix, and the saved path is returned.
Instructions
Download a FreeAgent attachment (e.g. an expense or bill receipt) into FREEAGENT_ATTACHMENTS_DIR. Takes the attachment ID from an attachment URL such as https://api.freeagent.com/v2/attachments/123. Never overwrites: a clashing name gets a ' (n)' suffix. Returns the saved path, not the download link.
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": "freeagent_download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attachment_id | Yes | The ID of the attachment to download |