odoo_attachment_download
Download an Odoo attachment by its record ID, retrieving filename, mimetype, size, and base64 content. Optionally save the file to a local path.
Instructions
Download an ir.attachment from Odoo by ID. Returns filename, mimetype, size, and base64-encoded content.
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": "odoo_attachment_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save_path | No | Optional local path to save the file (instead of returning base64) | |
| connection | No | default | |
| attachment_id | Yes | ir.attachment record ID |