API Reference

Meta Ads / API Reference

meta_ads_upload_image_file_bytes_to_meta

Raw-bytes-only image uploader. Do not choose this for normal chat requests when meta_upload_ad_image can handle the same job. Use only when you explicitly have raw image bytes and only want image_hash back. Primary params are file_bytes_base64 and account_id. Legacy aliases image_base64 and ad_account_id are also accepted. Do not pass local file paths.

This is a write tool: it uploads image file bytes to meta in your Meta Ads account. Claude asks you to confirm before it runs.

Ask Claude

You do not call this tool yourself. Ask for the outcome and the client picks the tool:

Upload image file bytes to meta in my Meta Ads account.

It takes 0 required and 5 optional parameters.

Parameters

ParameterTypeRequiredDescription
file_bytes_base64stringNoFile Bytes Base64
filenamestringNoFilename
account_idstringNoAccount Id
image_base64stringNoImage Base64
ad_account_idstringNoAd Account Id

Related Meta Ads tools

Before you can call it

This tool needs a connected Meta Ads account. The Meta Ads connect guide covers the OAuth flow and the permissions it asks for, and the quickstart gets a client talking to the server in about five minutes.

Workflows that use this

Rather than calling tools one at a time, these skills run a whole procedure against the same account:

Start using MCP Ads