search_pages
Search for Facebook Pages associated with an ad account to identify potential targets for advertising campaigns using the Meta Marketing API.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_account_id | Yes | ||
| meta_access_token | No | ||
| query | No |
Implementation Reference
- Implementation of the `search_pages` MCP tool, which uses `_search_pages_core` to perform the search.
async def search_pages( ad_account_id: str, meta_access_token: Optional[str] = None, query: Optional[str] = None, ) -> str: if not ad_account_id: return _json({"error": "No account ID provided"}) return await _search_pages_core(meta_access_token, ad_account_id, query)