read_attachment
Retrieve metadata and base64 content (size-limited) of an Odoo attachment by its ID.
Instructions
Read an ir.attachment's metadata and size-capped base64 content
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance | No | ||
| include_data | No | ||
| attachment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | No | Reporting tool name. | |
| error | No | Sanitized error message when success is false. | |
| success | Yes | False when the call failed; see error. | |
| warnings | No | ||
| max_bytes | No | ||
| attachment | No | ir.attachment metadata row. | |
| data_base64 | No | Base64 content when under the size cap. | |
| data_included | No |