meta_ads_media_write_get_upload_command
Upload images and videos to Meta Ads account. Actions: upload_image — upload an image. Returns the image hash you need for create_creative. upload_video — upload video from URL (Meta fetches it). Returns video_id. get_upload_command — get a curl command for uploading large local video files (keeps file out of AI context). upload_image accepts the file in four ways (use exactly one): image_url/file_url (public URL), upload_id (uploaded via the command this tool hands you), file_base64, or upload_code. Call upload_image with NO file to get a ready-made upload command for a file on the user's machine. Facebook CDN links (*.fbcdn.net) are signed, expiring and pinned to the browser that opened them — they do NOT work as image_url from the server; upload the file instead. For listing already-uploaded media use meta_ads_media.
[Flattened action: get_upload_command]
Bulk support: accepts upload_ids for batched execution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| account | No | ||
| file_url | No | ||
| file_name | No | ||
| file_path | No | ||
| image_url | No | ||
| upload_id | No | ||
| video_url | No | ||
| upload_ids | No | ||
| file_base64 | No | ||
| upload_code | No | ||
| auth_account | No |