Skip to content

meta_upload_page_photo

Upload an unpublished photo to a Page the selected ad account promotes, from an HTTPS image URL or base64 bytes (up to 5 MiB), with a Page token…

View as Markdown

Upload an unpublished photo to a Page the selected ad account promotes, from an HTTPS image URL or base64 bytes (up to 5 MiB), with a Page token from the connected user. Needs the Meta connection to include pages_manage_posts. Returns the photo_id used by canvas_photo in an Instant Experience; nothing is published on the Page. Local preview by default. No automatic retry. Account ownership is checked before Meta validation or mutation.

Source
Meta Ads
Kind
Write
Discovery
Reachable through search_tools and run_tool
Account parameter
adAccountId
Endpoint
https://mcp.getmcpads.com/meta-ads/mcp

Parameters

Parameters
NameTypeRequiredNotes
adAccountIdstringRequiredSelected owning ad account ID, with or without act_. Every referenced ad object must belong to it.
pageIdstringRequiredNumeric ID of the Facebook Page that owns this object. The selected ad account must be able to promote it.
urlstringOptionalPublicly reachable HTTPS image file URL.
bytesBase64stringOptionalBase64 JPEG or PNG bytes without a data-URL prefix. Maximum decoded size 5 MiB; omitted from preview output.
confirmbooleanOptionalApply only when true. Default is a local preview with no API mutation.
validateOnlybooleanOptionalAsk Meta to validate, without creating or changing an object. Mutually exclusive with confirm.

Calling it

json · Through run_tool, since it is not announced
{
  "name": "run_tool",
  "arguments": {
    "name": "meta_upload_page_photo",
    "args": {
      "adAccountId": "<string>",
      "pageId": "<string>"
    }
  }
}

Manage your ads from your AI assistant

Start for free

Free with 1 ad account, no card. Pro is free for 7 days.

Esc

Type to search