meta_ads_images_upload_file
Upload local image files to Meta Ads and retrieve the image_hash needed for ad creative construction. Ideal for images stored on disk, with support for JPG, PNG, and GIF up to 30 MB.
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. | |
| reason | No | Why this change is being made: one or two sentences naming the evidence and the expected effect. Stored in the journal and on the action_log entry this call produces, for the operator and the next session. | |
| 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. |