meta_ads_images_upload_file
Uploads a local image file to the Meta Ads account library and returns an image_hash for building creatives. Use it when the image sits on the agent's disk rather than a public URL.
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. | |
| approval | No | External approval this change carries out (recorded and shown, never verified) | |
| expected | No | Expected effects [{metric, direction, target?, horizon_days?, primary?}], exactly one primary:true when several; metric cpa/cpc/cpl/cpm/conversions/cvr/ctr/roas/cost/spend/clicks/impressions; direction up/down/hold. | |
| 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. | |
| decision_id | No | A proposed decision this change carries out. |