List posts usable as Meta ads
list_postsExisting Facebook and Instagram posts to run as Meta ads with their likes and comments. Existing posts a new ad can reuse, keeping their likes, comments and shares (create_ad_from_post):
source "ads" (default): the posts behind the ad account's ads (dark posts included), with the ads using each one: the usual "reuse my winning ad's post";
source "facebook": the page's published posts (page_id);
source "instagram": the posts of the page's Instagram account (page_id + instagram_account_id).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| cursor | No | next_cursor of the previous page | |
| source | No | ||
| page_id | No | source facebook / instagram | |
| campaign_id | No | source ads: only this campaign's ads | |
| ad_account_id | No | source ads | |
| instagram_account_id | No | source instagram (list_instagram_accounts) |