Ads Uploader
v0.4.6Meta Ads MCP: analyze, edit and bulk launch Meta ads, with an Agent Inbox for approvals.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ads_report_issue Report Tool Issue
Record a problem with these tools for the Ads Uploader team: results that contradict each other, a field that was silently ignored, a saved build display that differs from its preview, or a tool that does not do what its description says. Sends the summary, the expected and actual results and any IDs supplied, not names, emails, ad copy, tokens or other personal data; the server also redacts sensitive text. Returns { reported: true, reference, status: 'queued' }. Each call queues one report; limited to 10 reports per user per hour.
| Parameter | Type | Description |
|---|---|---|
actual * | string | |
expected * | string | |
tool * | string | |
accountId | string | |
adIds | array | |
buildId | string | |
jobId | string | |
requestId | string | |
severity | string |
ads_request_feature Request a Missing Capability
Record a capability these tools do not offer, for the Ads Uploader team: a missing tool, field, filter, action or level. Sends the goal, the missing capability, the tools tried and any IDs supplied, not names, emails, ad copy, tokens or other personal data. Similar requests are grouped and counted. ads_report_issue records problems with existing tools. Returns { requested: true, reference, status: 'recorded' }. Limited to 20 requests per user per hour.
| Parameter | Type | Description |
|---|---|---|
goal * | string | |
missingCapability * | string | |
accountId | string | |
level | string | |
toolsTried | array | |
workaround | string |
ads_list_catalogs List Catalogs
List catalogs this ad account can advertise for Product Showcase: products from a catalog shown under a single image or video ad. Full catalog (dynamic) ads are not supported yet.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID |
ads_list_product_sets List Product Sets
List product sets and sample products for Product Showcase: products from a catalog shown under a single image or video ad. Optionally select one product set.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID |
catalogId * | string | |
productSetId | string |
ads_get_product_showcase_recommendation Get Product Showcase Recommendation
Read Meta’s Product Showcase recommendation for a Sales campaign destination: products from a catalog shown under a single image or video ad. MUST_PICK requires an explicit productSetId; MANUAL requires catalog and set selection.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID |
adUrl * | string | |
pageId | string | |
pixelId | string |
ads_campaign_health Campaign Health
Answer “how is campaign X doing”: campaign performance, native optimization results, status, budgets, issues and bounded ad set learning counts. Use ads_query_insights for custom analysis. Result indicators and attribution windows stay separate. A 429 carries Retry-After. ROW_QUOTA_EXCEEDED carries the time the quota resets (meta.quota.resetsAt).
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID. |
after | string | Opaque paging.after cursor. Keep filters unchanged. |
campaignId | string | |
datePreset | string | Named Meta date preset. Mutually exclusive with timeRange. Defaults to last_30d when neither date option is supplied. |
fresh | boolean | Bypass the read cache. |
limit | integer | |
timeRange | object | Explicit current date range, mutually exclusive with datePreset. Use compare for a previous period, previous year or custom range. |
ads_list_audiences List Audiences
List Meta custom, lookalike and saved audiences, size bounds and safe targeting summaries. One cursor page across sources. A 429 carries Retry-After. ROW_QUOTA_EXCEEDED carries the time the quota resets (meta.quota.resetsAt).
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID. |
after | string | Opaque paging.after cursor. Keep filters unchanged. |
fresh | boolean | Bypass the read cache. |
limit | integer | |
search | string | |
type | string |
ads_list_conversions List Conversion Definitions
Read pixels, custom conversion definitions and standard event names. This describes available events, not measured conversion totals. Pixels and custom conversions share one bounded cursor page. A 429 carries Retry-After. ROW_QUOTA_EXCEEDED carries the time the quota resets (meta.quota.resetsAt).
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID. |
after | string | Opaque paging.after cursor. Keep filters unchanged. |
fresh | boolean | Bypass the read cache. |
limit | integer |
ads_estimate_delivery Estimate Audience and Delivery
Answer “how big is this audience”: read Meta reach and delivery estimates for AdSpec targeting and an optimization goal. Does not create ads. Estimates are predictions, not guaranteed delivery. A 429 carries Retry-After. ROW_QUOTA_EXCEEDED carries the time the quota resets (meta.quota.resetsAt).
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID. |
optimizationGoal * | string | |
targeting * | object | AdSpec targeting shape, converted by the ad-creation builder. Include at least one location. No inherited source targeting is available for estimates. |
fresh | boolean | Bypass the read cache. |
promotedObject | object |
ads_list_change_history Read Meta Change History
Meta ad account activity log, including edits made in Ads Manager and other tools. Use ads_list_history for launches and changes made through Ads Uploader. Defaults to the last 7 days; maximum span 90 days. Rows carry objectType AD/AD_SET/CAMPAIGN/AUDIENCE/ACCOUNT plus adSetId/campaignId/audienceId; metaObjectType and extra_data keep Meta’s legacy names (extra_data.campaign_id on an ad is its ad set). A 429 carries Retry-After. ROW_QUOTA_EXCEEDED carries the time the quota resets (meta.quota.resetsAt).
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID. |
after | string | Opaque paging.after cursor. Keep filters unchanged. |
fresh | boolean | Bypass the read cache. |
limit | integer | |
objectId | string | |
since | string | |
until | string |
ads_list_library_media List Meta Library Media
Read images or videos in the Meta ad account library, separate from Ads Uploader uploads. Returns one cursor page. A 429 carries Retry-After. ROW_QUOTA_EXCEEDED carries the time the quota resets (meta.quota.resetsAt).
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID. |
type * | string | |
after | string | Opaque paging.after cursor. Keep filters unchanged. |
fresh | boolean | Bypass the read cache. |
limit | integer |
ads_list_posts List Promotable Posts
Read accessible Facebook Page promotable posts or media for a connected Instagram professional account. Supply exactly one of pageId or igUserId. Messages are limited to 500 characters. A 429 carries Retry-After. ROW_QUOTA_EXCEEDED carries the time the quota resets (meta.quota.resetsAt).
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID. |
after | string | Opaque paging.after cursor. Keep filters unchanged. |
fresh | boolean | Bypass the read cache. |
igUserId | string | |
limit | integer | |
pageId | string |
ads_get_account Read Account Details
Read an owned Meta ad account’s status, currency, timezone, spend and funding display. Money includes major amounts and raw minor-unit strings. Includes the read-only metaEdits enabled setting and approval rule, plus permissions (visible, read, launch and edit as off, approval or allowed, approvalRule) from the Account Permissions page; CLI/MCP cannot change them. A 429 carries Retry-After. ROW_QUOTA_EXCEEDED carries the time the quota resets (meta.quota.resetsAt).
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID. |
fresh | boolean | Bypass the read cache. |
ads_list_inbox_history Read Agent Inbox History
Read retained Agent Inbox suggestions and direct edit outcomes over the last 90 days, newest first. Includes reason, reasonEdited, runTitle, clientName, before/after, outcome and a plain error, plus userEdited {value, note} with the agent’s own suggestedAfter and suggestedReason when the user changed them (for example, you suggested 6000 and the user changed it to 6100), and revisions[]: every later change, oldest first, with at, by (user or agent, plus source and clientName), kind (value or note), action (edited, or restored_to_agent when your original was put back), field, before and after…
| Parameter | Type | Description |
|---|---|---|
accountId | string | Ad account ID; omit to use the selected account or, if none is selected, all permitted accounts. |
action | string | |
campaignId | string | |
cursor | string | Use paging.cursor from the previous page with the same filters. |
kind | string | |
limit | integer | |
reviewId | string | Filter to one agent run. |
since | string | Inclusive ISO date or timestamp, within the retained 90-day window. |
status | string | |
until | string | Inclusive ISO date or timestamp. A date includes that whole UTC day. |
ads_list_history Read Ads Uploader History
Ads Uploader History: launches and changes made through Ads Uploader (web Uploader, Duplicator, AI Edits, CLI, MCP, API) on one ad account, newest first: the same list as the History page. Duplicator copies read type Duplicate, with duplicate: copy or post. Not Meta's activity log.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID |
before | string | |
days | integer | |
limit | integer | |
member | string | |
q | string | |
source | string | |
type | string |
ads_get_launch Read Launch Details
Read one Ads Uploader launch: one row per ad with its ID, name, status, ad set, campaign, result and error, plus totals and failures. Use a launchId from ads_list_history rows. detail: 'full' adds targeting, budgets, schedule, creative settings and media.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | |
launchId * | string | Launch ID from ads_list_history rows |
detail | string | One row per ad by default. Full adds targeting, budgets, schedule, creative settings and media. |
ads_edit_cancel Cancel Edit Proposals
Cancel pending edit suggestions so they leave the Agent Inbox. Nothing changes in Meta. Pending suggestions only; returns a result per suggestion. With the older reviewId and duplicatesOnly: true it removes a suggestion that is pending in two reviews.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | |
reviewId * | string | |
duplicatesOnly | boolean | |
proposalIds | array |
ads_discard_launch Discard a Waiting Launch
Discard a launch waiting in the Agent Inbox, like its Discard button. Nothing is created in Meta. The saved build stays (ads_delete_build removes it). Launches that already started cannot be discarded. ads_edit_cancel handles edit suggestions.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID. |
buildId * | string | Saved build ID of the waiting launch, e.g. build_abc123... |
ads_list_edit_reviews List Edit Reviews
Read compact account-scoped Edit Review counts, including reviews still being built. Proposals are omitted unless include: proposals.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | |
after | string | |
include | string | By default returns compact review counts without proposals. Request proposals for the full proposal list. |
limit | integer |
ads_get_edit_review Read an Edit Review
Read one owned review with compact proposal rows, statuses and edit IDs. A suggestion shows applying while an approved change is being sent to Meta, then applied or failed. Each row has userEdited {value, note}; when the user changed a suggestion before approving it, suggestedAfter and suggestedReason hold the original suggestion and after and reason hold what the user chose. revisions[] lists each change with who made it, before and after, and restored_to_agent when the original was put back. Duplications include copies[].status (pending, approved, made, partial, failed, rejected), group for…
| Parameter | Type | Description |
|---|---|---|
accountId * | string | |
reviewId * | string | |
after | string | Proposal index returned by paging.after. |
detail | string | Compact rows by default. Full includes operations, changes and editable fields. |
limit | integer |
ads_edit_preview Preview Meta Edits
Preview edits to existing Meta campaigns, ad sets and ads without changing Meta: status, archive, delete, name, budget, bid (including minimum ROAS), schedule, spend limit, targeting, ad set settings and set_creative (ad text, links and call to action). At most 10 creative edits per plan. Targeting is patched; ads_search_targeting finds IDs and detail: full returns the full resulting audience. set_creative covers standard, placement-customised, multi-media and carousel creatives, with per-card headline, description and link through cards[{card, headline, description, link}]; per-card links are…
ads_edit_apply Apply Meta Edits
Apply a preview plan to existing Meta objects. Takes the planId from ads_edit_preview (valid for 15 minutes) and the confirm flags named in that preview's requiredConfirmations. Returns a result per change: applied, failed, skipped or pending. Pending means not sent yet and still waiting in its review. Applying the same planId again returns the first result and changes nothing more. Archive and delete cannot be undone. Accounts in review mode return EDITS_REVIEW_REQUIRED with a reviewUrl; those changes are approved in the Agent Inbox.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | |
planId * | string | |
allowLargeChange | boolean | Confirms a large budget change. Needed when the preview's requiredConfirmations lists large_change. |
confirmIrreversible | boolean | Confirms an archive or delete, which cannot be undone. Needed when the preview's requiredConfirmations lists irreversible. |
confirmLiveChange | boolean | Confirms a change to an object that is live. Needed when the preview's requiredConfirmations lists live_change. |
confirmSpend | boolean | Confirms a change that starts or raises spend. Needed when the preview's requiredConfirmations lists spend. |
ads_edit_undo Preview an Undo
Create a new preview that restores the applied, reversible changes of one edit. It does not apply the undo; the result works like any ads_edit_preview result. Archive and delete return not_reversible. In review mode the undo keeps the original run title and note with an "Undo:" prefix unless runTitle or reason is passed; reviewId adds it to an existing review.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | |
editId * | string | |
reason | string | One short note for the user explaining why (shown in their Agent Inbox). Defaults to the original note with one "Undo: " prefix. |
reviewId | string | Add the undo to this existing review instead of starting a new one. |
runTitle | string | Optional one-line title for this undo. Defaults to "Undo: " plus the original run title, keeping an existing prefix. |
ads_list_edits List Edit History
Deprecated: use ads_list_history with type changes. Reads one account-scoped cursor page of Ads Uploader edit history.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | |
after | string | |
limit | integer |
ads_get_edit Read Edit Results
Read an owned edit and its applied, failed, skipped and pending changes. Pending means not sent yet and still waiting in its review.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | |
editId * | string |
ads_whoami Show Authenticated User
Show which Ads Uploader user this session is signed in as (email, name, user ID) and the API host it talks to.
ads_list_accounts List Ad Accounts
List Meta ad accounts available to the authenticated Ads Uploader user. Use refresh to re-check Meta for reinstated/changed accounts (rate limited).
| Parameter | Type | Description |
|---|---|---|
refresh | boolean | Re-check Meta for reinstated/changed accounts (rate limited). |
ads_list_campaigns List Campaigns
List campaigns in an ad account, optionally filtered by name search and status. Search matches campaign names only; to find ad sets or ads by name, call ads_list_adsets or ads_list_ads without a parent ID. Use fields to return only the columns you need; large pages are trimmed to fit the output budget.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID, e.g. act_123. |
after | string | Opaque paging.after cursor. Keep filters unchanged. |
fields | array | Return only these output columns. id is always returned; money fields also keep their Minor twin and currency. status is the configured state; effectiveStatus is the effective delivery state. Either i… |
fresh | boolean | Accepted for compatibility; this list always reads fresh data. |
limit | integer | |
offset | integer | Offset within the fetched results. Requests fetch up to 500 rows. After budget trimming, use pagination.nextOffset with the same input after; consume remaining rows before following paging.after. |
search | string | Optional campaign name search text. |
status | string | Exact 'active' filters active/in-process delivery states (default); other values mean no status filter on existing campaign and parent-scoped lists. |
ads_list_adsets List Ad Sets
List ad sets in a campaign, or across the whole ad account when campaignId is omitted. To find ad sets by name without knowing their campaign, omit campaignId and pass search (name contains); each row then includes campaignId and campaignName. Request regionalRegulationIdentities, regionalRegulatedCategories, dsaBeneficiary or dsaPayor in fields for advertiser details. Identities also return regionalRegulationIdentityNames with Meta names or null. status defaults to 'active', so pass 'all' to include paused ad sets. Returns one bounded page; follow paging.after for more. Use fields to return o…
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID, e.g. act_123. |
after | string | Opaque paging.after cursor. Keep filters unchanged. |
campaignId | string | Meta campaign ID. Omit to list ad sets across the whole ad account, e.g. to find ad sets by name with search when the campaign is unknown; each row then includes campaignId and campaignName. |
fields | array | Return only these output columns. id is always returned; money fields also keep their Minor twin and currency. status is the configured state; effectiveStatus is the effective delivery state. Either i… |
fresh | boolean | Accepted for compatibility; this list always reads fresh data. |
limit | integer | |
offset | integer | Offset within the fetched results. Requests fetch up to 500 rows. After budget trimming, use pagination.nextOffset with the same input after; consume remaining rows before following paging.after. |
search | string | Optional ad set name search text (name contains). Works with or without campaignId. |
status | string | Exact 'active' filters active/in-process delivery states (default); other values mean no status filter on existing campaign and parent-scoped lists. Without a parent ID, account-wide lists also suppor… |
ads_list_ads List Ads
List ads in an ad set, or across the whole ad account when adSetId is omitted. To find ads by name without knowing their ad set, omit adSetId and pass search (name contains); each row then includes adsetId, adsetName, campaignId and campaignName. status defaults to 'active', so pass 'all' to include paused ads. To see why ads were rejected or have delivery issues, add reviewFeedback and/or issues to fields (Meta's policy reasons and issues_info); they are read only when named in fields. Returns one bounded page; follow paging.after for more. Use fields to return only the columns you need; larg…
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID, e.g. act_123. |
adSetId | string | Meta ad set ID. Omit to list ads across the whole ad account, e.g. to find ads by name with search when the ad set is unknown; each row then includes adsetName, campaignId and campaignName. |
after | string | Opaque paging.after cursor. Keep filters unchanged. |
fields | array | Return only these output columns. id is always returned. status is the configured state; effectiveStatus is the effective delivery state. Either is null when Meta does not provide it. adsetName, campa… |
fresh | boolean | Accepted for compatibility; this list always reads fresh data. |
limit | integer | |
offset | integer | Offset within the fetched results. Requests fetch up to 500 rows. After budget trimming, use pagination.nextOffset with the same input after; consume remaining rows before following paging.after. |
search | string | Optional ad name search text (name contains). Works with or without adSetId. |
status | string | Exact 'active' filters active/in-process delivery states (default); other values mean no status filter on existing campaign and parent-scoped lists. Without a parent ID, account-wide lists also suppor… |
ads_get_ad Get Ad Details
Get one ad with its creative details. For a DISAPPROVED or WITH_ISSUES ad it also returns reviewFeedback (Meta's rejection reasons: global and placementSpecific lists of policy and reason) and issues (errorCode, errorSummary, errorMessage, level), which explain why it is not delivering; null means Meta's reasons could not be read.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID, e.g. act_123. |
adId * | string | Meta ad ID. |
ads_list_pages List Facebook Pages
List Facebook Pages (with their connected Instagram accounts) available for profile overrides in an ad account.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID, e.g. act_123. |
limit | integer | |
offset | integer |
ads_search_targeting Search Targeting Options
Search Meta targeting values for ads_create, a saved build spec, or set_targeting in ads_edit_preview. Use type=city to find targeting.cities[].key values, type=zip to find targeting.zips[].key values, or type=detailed for {id,name,type} entries. Builds use targeting.detailedTargetingGroups; edits use add/remove with the returned type and {id}. IDs must never be guessed; use this tool to discover them.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID, e.g. act_123. |
query * | string | City name, zip/postal code, or detailed-targeting keyword to search. |
type * | string | Use city to find targeting.cities[].key values, zip to find targeting.zips[].key values, or detailed to find detailedTargetingGroups selections. |
limit | integer |
ads_list_insight_fields List Insight Fields
Discover Ads Insights fields by search, group or ids. Without filters, returns a compact group index and recommended fields. accountId adds the custom conversions of that account. Breakdown IDs belong in ads_query_insights.breakdowns, not fields. A 429 carries Retry-After. ROW_QUOTA_EXCEEDED carries the time the quota resets (meta.quota.resetsAt).
| Parameter | Type | Description |
|---|---|---|
accountId | string | Optional account for custom conversion definitions. Omit for static discovery without account access. |
group | string | Optional exact catalog group such as delivery, conversions, video, identity, breakdown, or date. |
ids | array | Exact field IDs whose full entries to return. |
kind | string | Optional catalog kind. Use breakdown to discover values for query.breakdowns, not query.fields. |
limit | integer | Maximum catalog entries to return in this offset-based page. |
offset | integer | Zero-based catalog offset for the next field-catalog page. |
recommended | boolean | When true, return only catalog entries recommended for common reporting queries. |
search | string | Optional text matched against supported field IDs, labels, kinds, and groups. |
ads_query_insights Query Ad Performance Insights
Query Ads Insights for one account, or 2 to 5 accountIds, one bounded page per account, as table rows by default. Friendly metrics such as leads, purchases, roas, results and cost_per_result cover business questions at campaign, ad set or ad level; ads_list_insight_fields finds other fields. Supports date presets and ranges, timeIncrement, breakdowns (asset, media and hourly breakdowns each alone) and filters. Use compare for vs last period or previous-year questions. Use include for status, budget, targeting or creative context instead of separate list calls. On rows with delivery, omitted co…
ads_get_insights_job Get Insights Report Job
Read an Insights report job started by ads_query_insights, by job.id and the same accountId. A running result includes progress and pollAfterSeconds. A completed result is one bounded page; paging.after with this tool returns more rows. A 429 carries Retry-After. ROW_QUOTA_EXCEEDED carries the time the quota resets (meta.quota.resetsAt).
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID from the original query. |
jobId * | string | job.id returned by ads_query_insights. |
after | string | Opaque paging.after cursor from this job's previous page. |
format | string | table returns row arrays in column order, including actionRows. objects returns keyed rows. |
limit | integer | Maximum rows; defaults to the original query limit. |
waitSeconds | number | Long-poll duration. Follow pollAfterSeconds while the job is running. |
ads_list_presets List Presets
List saved API or ad text presets for an ad account.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID, e.g. act_123. |
limit | integer | |
offset | integer | |
type | string |
ads_get_preset Get Preset
Get one saved preset by ID.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID, e.g. act_123. |
presetId * | string | Ads Uploader preset ID. |
ads_save_preset Save Preset
Save an existing ad as a reusable API preset. A preset name that already exists on the account is refused.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID, e.g. act_123. |
fromAdId * | string | Existing Meta ad ID to save as a preset. |
name * | string | Preset name. |
shareWithTeam | boolean |
ads_list_builds List Saved Builds
List saved uploader build summaries for the authenticated user, optionally filtered by ad account. Returns metadata, warning codes, totalAdSets/totalAds/complete from display, and mediaCount. Use ads_get_build for full detail.
| Parameter | Type | Description |
|---|---|---|
accountId | string | Optional ad account ID filter, e.g. act_123. |
limit | integer | |
offset | integer |
ads_save_build Save Build
Save a durable build: a launch configuration the web uploader can open and ads_create can launch by buildId. A spec-only build is the supported shape for agent-created configurations; the web uploader generates its own webState when it opens the build, and webState is only accepted unchanged from a build that was read. accountId can be omitted when the spec or webState carries it. Returns the build metadata with its url, launchable and launchBlockers, and display: totalAdSets, totalAds and the ads in each ad set as the web uploader renders them (display.complete false carries a reason, and dis…
| Parameter | Type | Description |
|---|---|---|
accountId | string | Optional ad account ID. The server can also derive it from webState.selectedAccount.accountId, webState.selectedAccount.account_id, or spec.accountId. |
name | string | Optional durable build name. |
notes | string | Optional free-form notes stored on the build. |
spec | object | Portable launch specification. Spec-only creation is supported and preferred for agent-created builds. |
webState | object | Opaque web uploader session snapshot. Do not construct it by hand. Only provide webState when round-tripping a snapshot previously read from a build without changing its structure. |
ads_get_build Get Saved Build
Get one saved build by ID with its full spec. The opaque web uploader snapshot webState is included by default; include: ["-webState"] omits it. Other metadata is trimmed for display.
| Parameter | Type | Description |
|---|---|---|
buildId * | string | Saved build ID, e.g. build_abc123... |
include | array | The web uploader session snapshot is included by default. Use -webState to omit it; webState remains accepted. |
ads_fork_build Fork Saved Build
Fork a saved build into a new autosaved draft: a variant with its own build ID, preserving the original build. The fork copies the uploader configuration and media references and can be edited independently. Returns the source build ID and the new build with its url. Each call creates another fork.
| Parameter | Type | Description |
|---|---|---|
buildId * | string | Saved build ID to duplicate, e.g. build_abc123... |
ads_update_build Update Saved Build
Update one saved build by ID: rename it, edit notes, patch its portable spec with specPatch, or replace the full spec. specPatch merges field by field: omitted fields survive, nested text entries merge, supplied arrays replace and null removes a field. It needs expectedRevision, the revision from ads_get_build. Changes to spec, webState, mediaItems or uploadBatchId bump the revision. A rename or notes-only update does not bump it. Parallel updates to one build collide on the revision: a stale expectedRevision returns "Build changed since it was read" (HTTP 409), and ads_get_build returns the c…
| Parameter | Type | Description |
|---|---|---|
buildId * | string | Saved build ID, e.g. build_abc123... |
expectedRevision | integer | Revision returned by ads_get_build. Required with specPatch and recommended for every update; the update fails instead of overwriting a newer revision. |
name | string | New build name. Setting a name marks the build as manually saved, so it stops rotating out with autosaves. |
notes | string | Free-form notes stored on the build. |
spec | Replacement portable spec (the launch configuration used by ads_create with buildId). Send the FULL updated spec object, not a partial diff. Set to null to clear it. | |
specPatch | object | Preferred for content edits. Field-aware merge patch applied to the stored portable spec: omitted fields survive, nested objects (including individual texts.perAd/perAdset entries) merge, supplied arr… |
webState | object | Opaque web uploader session snapshot. Do not construct this object by hand. Only send it when round-tripping a webState previously read from the build without changing its structure. For content chang… |
ads_delete_build Delete Saved Build
Delete one saved build by ID.
| Parameter | Type | Description |
|---|---|---|
buildId * | string | Saved build ID, e.g. build_abc123... |
ads_list_uploads List Upload Batches
List recent media upload batches for an ad account.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID, e.g. act_123. |
limit | integer | |
offset | integer |
ads_get_upload Get Upload Status
Get a completed upload batch by batchId (or its alias uploadId), or poll a background media-ingest job by jobId until complete is true. Job polls return the full result, progress and file list by default; pass compact:true for counts and failed files only.
| Parameter | Type | Description |
|---|---|---|
accountId | string | Optional ad account ID, e.g. act_123. |
batchId | string | Completed upload batch ID. |
compact | boolean | Opt in to counts and failed files for jobId polls. Default false returns the full result, progress and files. |
jobId | string | Background ingest job ID. Poll until complete is true; the final batch summary is returned in result. |
uploadId | string | Alias for batchId. ads_upload returns batchId; ads_create calls that same batch ID uploadId. The per-file multipart uploads[].uploadId in a presigned ads_upload response is a storage upload ID used by… |
ads_upload Upload Media
Upload media to an ad account. Use paths for local disk media, files[].url for public URLs or Google Drive file links, or driveFolderUrl for a public Drive folder. URL and Drive modes return a background jobId to poll with ads_get_upload. Each call starts a new batch. Base64 is only for a couple of small images; presigned mode is only for byte-capable environments. In presigned mode, script:true is recommended for agents with a shell.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID, e.g. act_123. |
batchId | string | Optional existing batch ID for grouping with an earlier upload. |
cwd | string | Optional base directory for resolving relative paths. |
driveFolderUrl | string | Public Google Drive folder share link for server-side background ingestion. |
files | array | Public media URLs (including Drive file links), small inline images, or presigned metadata. |
inlineScript | boolean | With script:true, return uploadScript inline for clients that cannot fetch scriptUrl. |
paths | array | Local files or directories to upload when running the local stdio server. Relative paths resolve from cwd. |
presigned | boolean | Only for environments that can PUT bytes themselves. Large files may return multipart part URLs. |
script | boolean | With presigned:true, return a short-lived scriptUrl and minimal file metadata. Recommended for agents with a shell; use inlineScript:true if downloads are unavailable. |
ads_upload_refresh_urls Refresh Upload Links
Refresh expired upload links for selected files or multipart part numbers in the same batch. Files already uploaded are kept. Single-PUT file keys may change; the returned keys are the ones ads_upload_finalize takes.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | |
batchId * | string | Keep the original upload batch ID. |
files * | array | Only files or parts whose upload links expired. Other uploads remain available. |
ads_upload_finalize Finalize Media Upload
Finalize a presigned upload batch after the client has PUT each file. Hosted calls return a background ingest jobId that ads_get_upload reads.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Ad account ID, e.g. act_123. |
batchId * | string | Upload batch ID returned by ads_upload with presigned=true. |
files | array | Files returned by ads_upload presigned mode after the client has PUT each file to uploadUrl or each multipart chunk to parts[].url. |
thumbnailMap | array | Optional explicit video-to-thumbnail staged key map. ads_upload usually returns thumbnailFileKey on the video automatically. |
ads_create Create Meta Ads
Create Meta ads in an ad account from a v1 AdSpec request body or a saved build (buildId). Media comes from an upload batch (uploadId), saved-build mediaItems, copyFromAd or a preset. Existing destinations take campaign.id and adSet.id; campaign.name and adSet.name create new ones. Ad text goes in texts.common or texts.perAd, keyed by file name, as headlines arrays plus bodies and descriptions; CTA fields use Meta enum values such as SHOP_NOW. Supports standard, carousel, flexible and Multi Media ads, partnership ads on uploaded media, Instagram existing-post partnership ads and Product Showca…
ads_preview Preview Ad Creation
Preview what ads_create would do for a v1 AdSpec request or saved build, without creating ads. Takes the same inputs as ads_create: existing destinations take campaign.id and adSet.id, and ad text takes headlines arrays. Returns the planned campaigns, ad sets and ads, newAdSets with the exact settings each new ad set would get (targeting, placements, attribution, optimization, pixel and event, bid, budget), warnings (blocking: true marks the ones create rejects), lifetimeBudget when it applies, a resolvedSpec and launch.mode. launch.mode allowed means create sends objects straight to Meta, and…
ads_get_job Get Job Status
Get an ad creation job by jobId. Returns the full result and stage progress by default; compact: true returns an ads summary with created, failed and total counts and progress measured in ads. Includes the last 20 progress.operations (operations: "full" returns all retained ones). A job that is still running has complete: false, and compact running jobs include a nextStep hint.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | Ad creation job ID. |
compact | boolean | Opt in to a compact ads summary. Default false preserves the full result and original stage progress. |
operations | string | Use recent for the last 20 operations or full for the complete operation log. |
ads_duplicate_preview Preview Duplication
Copy campaigns, ad sets or ads in Ads Uploader, with previews, destination settings and account approvals. Copies stay within one ad account. A deep copy includes children; deepCopy: false copies only the root. Ad sets default to their source campaign and ads to their source ad set. rename supports {name}, {date} (UTC) and {index}; only roots are renamed unless renameChildren is true. Copy roots are PAUSED by default and children keep their source status unless childStatus:PAUSED. overrides change targeting, schedule, budget, bid and ad set settings on the copies. EU-targeted ad set copies nee…
ads_duplicate Duplicate Campaigns, Ad Sets or Ads
Copy campaigns, ad sets or ads in Ads Uploader, with previews, destination settings and account approvals. Copies stay within one ad account. A deep copy includes children; deepCopy: false copies only the root. Ad sets default to their source campaign and ads to their source ad set. rename supports {name}, {date} (UTC) and {index}; only roots are renamed unless renameChildren is true. Copy roots are PAUSED by default and children keep their source status unless childStatus:PAUSED. overrides change targeting, schedule, budget, bid and ad set settings on the copies. EU-targeted ad set copies nee…
ads_duplicate_by_post Duplicate Ads by Post
Duplicate ads while keeping their social proof (likes, comments, shares) by reusing the same Page post; for regular duplication use ads_duplicate. Copies go into an existing ad set (adSetId) or into new ad sets: newAdSet and newAdSetPerAd copy the ad set given in adSetId, which must already be in the destination campaign and may be empty (it needs no ads). For a brand-new empty campaign, first put one ad set in it with no ads (for example ads_duplicate of an ad set with deepCopy:false) and pass that adSetId with newAdSet or newAdSetPerAd, so the ads and their new ad sets are created in the by-…
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Meta ad account ID, e.g. act_123. |
acknowledgeWarnings | boolean | Continues past the creative warnings the preview listed. Needed for warned live runs unless useCreativeId is true. |
adIds | array | Ordered exact source ad IDs. Use preview.resolvedRequest to retain the reviewed selection; exclusive with postIds. |
adNamePattern | string | New ad name pattern. Supports {AdName} and {Index}. |
adSetId | string | Required for an existing destination ad set. Optional with newAdSet/newAdSetPerAd: omit to copy the source ad set, or provide a template in campaignId and the selected account. A source without its ow… |
campaignId | string | Existing destination campaign ID. |
confirmSpend | boolean | Accepted for older clients and ignored: post-ID copies never require it. |
newAdSet | object | One shared new ad set. Cannot be combined with newAdSetPerAd. |
newAdSetPerAd | object | One new ad set per source ad. Cannot be combined with newAdSet; one source produces one shared clone. |
paused | boolean | Create duplicated ads paused. |
postIds | array | Discover source ads by Page post ID. Multiple matches require an explicit adIds selection; exclusive with adIds. |
reason | string | One short note for the user explaining why (shown in their Agent Inbox). |
reviewId | string | Add this copy to an existing review from ads_edit_preview or an earlier duplicate, so one run is approved together. |
runTitle | string | Short name for this run. If the user names the run, use their exact words. Reuse it with the same reviewId. A run the user renamed keeps their name. |
useCreativeId | boolean | Reuse original creative IDs instead of creating post-reference creatives. |
ads_duplicate_by_post_preview Preview Duplication by Post
Duplicate ads while keeping their social proof (likes, comments, shares) by reusing the same Page post; for regular duplication use ads_duplicate. Previews the copy without creating anything: returns sourceCandidates, a pinned resolvedRequest and a cleaned source-to-destination plan. Select ads by Page post ID. Use postIds for discovery or adIds for exact selection, never both; a post that matches several ads needs adIds.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Meta ad account ID, e.g. act_123. |
acknowledgeWarnings | boolean | Continues past the creative warnings the preview listed. Needed for warned live runs unless useCreativeId is true. |
adIds | array | Ordered exact source ad IDs. Use preview.resolvedRequest to retain the reviewed selection; exclusive with postIds. |
adNamePattern | string | New ad name pattern. Supports {AdName} and {Index}. |
adSetId | string | Required for an existing destination ad set. Optional with newAdSet/newAdSetPerAd: omit to copy the source ad set, or provide a template in campaignId and the selected account. A source without its ow… |
campaignId | string | Existing destination campaign ID. |
confirmSpend | boolean | Accepted for older clients and ignored: post-ID copies never require it. |
newAdSet | object | One shared new ad set. Cannot be combined with newAdSetPerAd. |
newAdSetPerAd | object | One new ad set per source ad. Cannot be combined with newAdSet; one source produces one shared clone. |
paused | boolean | Create duplicated ads paused. |
postIds | array | Discover source ads by Page post ID. Multiple matches require an explicit adIds selection; exclusive with adIds. |
reason | string | One short note for the user explaining why (shown in their Agent Inbox). |
reviewId | string | Add this copy to an existing review from ads_edit_preview or an earlier duplicate, so one run is approved together. |
runTitle | string | Short name for this run. If the user names the run, use their exact words. Reuse it with the same reviewId. A run the user renamed keeps their name. |
useCreativeId | boolean | Reuse original creative IDs instead of creating post-reference creatives. |
ads_get_duplication Get Duplication Status
Get a regular duplicate or duplicate-by-post job by jobId. Returns complete plus the created, failed and skipped objects. A partial job has created objects: created carries newId and the current name, failed carries stage and error.message, and retryable marks a step that can be retried from the Agent Inbox. Pending approvals have no job until they are approved in the Agent Inbox.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | Duplication job ID. |
ads_cancel_job Cancel Job
Cancel a running ad creation job or media ingest job.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | Ad creation job ID or media ingest job ID (ingest_...). |