get_image_by_hash
Download and visualize a Meta ad image directly from its image_hash. Use this when you only have a hash from an upload or creative and no ad ID to look up.
Instructions
Get, download, and visualize a Meta ad image by its hash.
Use this when you have an image_hash without an ad — e.g. the hash
returned by upload_ad_image / bulk_upload_ad_images, or one referenced
in a creative (object_story_spec.link_data.image_hash, asset_feed_spec
images[].hash, etc.). To view the image of an existing ad, prefer
get_ad_image(ad_id).
Args:
account_id: Meta Ads account ID (act_XXXXXXXXX or bare numeric — both accepted)
image_hash: Meta image hash
access_token: Meta API access token (optional - will use cached token if not provided)
Returns:
The image ready for direct visual analysis
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_hash": "<image_hash>"
},
"name": "get_image_by_hash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | ||
| image_hash | Yes | ||
| access_token | No |