meta_ads_images_upload_file
Upload an image from your local file system to the Meta Ads account library and retrieve the image hash for use in ad creative construction.
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 |
|---|---|---|---|
| name | No | Optional label stored with the uploaded asset. Used only for library organization. | |
| file_path | Yes | Path to the image file on the agent's filesystem. Meta accepts JPG, PNG, and GIF up to 30 MB. | |
| 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. |