creatives_upload_image
Upload an image file to a Meta ad account's image library and receive its image hash for use in ad creatives.
Instructions
Upload an image to an ad account's image library. Returns the image hash.
Args: image_path: Absolute path to a local image file (PNG, JPG, GIF).
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": {
"account_id": "<account_id>",
"image_path": "<image_path>"
},
"name": "creatives_upload_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| account_id | Yes | ||
| image_path | Yes |