fetch_and_upload
Load a file from a URL or local path and store it as an Odoo attachment. Replace an existing attachment by providing its ID, or omit to create a new one. Returns the attachment ID and source URL.
Instructions
💡 Before multi-step work, check find_skill / list_workflows for canonical recipes. Load a file from a URL or local absolute path and store it as an Odoo ir.attachment. The MCP server handles the transfer — no binary passes through the AI context. Pass attachment_id to replace an existing attachment in-place (same ID, no arch update needed). Omit attachment_id to create a new attachment. Returns {id, src} usable in any context (arch_db, chatter, record field).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| public | No | ||
| res_id | No | ||
| source | Yes | ||
| is_image | No | ||
| res_model | No | ir.ui.view | |
| attachment_id | No |