chatgpt_ads_images_upload_file
Uploads a local JPEG, PNG, or WebP image to a ChatGPT Ads account and returns its file_id for use in an ad creative.
Instructions
Uploads one local image file to the ChatGPT Ads account. Returns the platform object unchanged: file_id, which goes into creative.file_id of chatgpt_ads_ads_create. Mutates the account (adds a file); not undone by rollback. Creative images must be JPEG, PNG or WebP and at least 640x640 pixels; mureo refuses other extensions and files over 30MB and files whose content is not that image format before sending anything; the bytes checked are the bytes sent. An upload is not retried on a 5xx or a transport error.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "chatgpt_ads_images_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 of a local .jpg, .jpeg, .png or .webp file (e.g. '/Users/me/ads/card.png'). Only the file name is sent with the bytes. | |
| decision_id | No | A proposed decision this change carries out. |