Upload picture
ml_upload_pictureUpload a local JPEG, PNG or WEBP image (max 10 MB) to Mercado Livre and get its picture ID. Preview first without confirm, then confirm=true to upload.
Instructions
Upload a local image to Mercado Livre and return its picture id. Only real JPEG, PNG or WEBP files up to 10 MB are accepted, given by absolute path; anything else is refused. An uploaded picture gets a public URL on Mercado Livre's CDN, even before it is attached to an item with ml_update_item. Nothing is uploaded unless confirm=true. Call it without confirm first to get a preview (file, type and size), show that preview to the user, and call again with confirm=true only after their explicit approval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | false (default) checks the file and returns a preview without uploading; true uploads it. | |
| file_path | Yes | Absolute path of a JPEG, PNG or WEBP file (max 10 MB). |