meta_ads_images_upload_file
Uploads an image from a local file to the Meta Ads account library. Returns the image_hash for referencing in creative-construction tools. Use when the image is stored locally.
Instructions
Uploads an image from a local file path to the Meta Ads account library. Returns the image_hash to reference in creative-construction tools. Mutating — the asset is persisted. Use this when the image lives on the agent's local disk; for public-URL uploads use meta_ads_creatives_upload_image instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No | Meta Ads account ID in the format 'act_XXXXXXXXXX' (e.g. 'act_1234567890'). Optional — falls back to META_ADS_ACCOUNT_ID from the configured credentials. The leading 'act_' prefix is required. | |
| file_path | Yes | Path to the image file on the agent's filesystem. Meta accepts JPG, PNG, and GIF up to 30 MB. | |
| name | No | Optional label stored with the uploaded asset. Used only for library organization. |