Prepare Upload
prepare_uploadGenerate an endpoint and short-lived upload token so client-side files can be posted directly to a remote Odoo MCP server, avoiding the LLM token stream.
Instructions
Prepare an out-of-band upload of a CLIENT-side file to this server.
Use this when the file to attach lives on the client machine and this MCP server is remote: pushing the bytes over plain HTTP keeps them out of the LLM token stream (much faster and cheaper than base64_data for large files).
Workflow:
Call this tool to get the endpoint info and a short-lived upload_token.
POST the file (multipart field 'file') to /upload, where is the same scheme://host:port this MCP connection uses: curl -fsS -F "file=@/local/invoice.png"
-H "Authorization: Bearer <upload_token>" /upload -> {"file_path": "/shared/uploads/.png", "file_name": "invoice.png"}Call add_attachment(file_path=..., file_name=..., res_model=..., res_id=...).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |