Search Facebook Ad Library ads
facebook_adLibrary_ads_search_getSearch Facebook Ad Library ads by keyword and filters. Returns a list (use cursor when paginated).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Alias for `query`. Prefer `query`. | |
| sort | No | Alias for `sortBy`. Prefer `sortBy`. | |
| trim | No | When true, returns a smaller response with fewer fields. | |
| limit | No | Ignored if this tool does not support it. | |
| query | No | Search query text for Facebook Ad Library ads. | |
| adType | No | Optional filter for all ads or political and issue ads. | |
| cursor | No | Opaque pagination cursor from a previous response. | |
| offset | No | Ignored if this tool does not support it. | |
| sortBy | No | Optional sort order for returned ads. | |
| status | No | Optional ad status filter. | |
| context | Yes | Describe the user's underlying goal in one sentence — not the tool you are calling. | |
| country | No | Optional country code filter. Use ALL to search all countries. | |
| endDate | No | Optional end date filter in YYYY-MM-DD format. | |
| keywords | No | Alias for `query`. Prefer `query`. | |
| pageSize | No | Ignored if this tool does not support it. | |
| llm_model | Yes | The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess. | |
| mediaType | No | Optional creative media filter. | |
| startDate | No | Optional start date filter in YYYY-MM-DD format. | |
| maxResults | No | Ignored if this tool does not support it. | |
| searchType | No | Optional keyword matching mode for the search query. | |
| max_results | No | Ignored if this tool does not support it. | |
| conversation_id | No | Echo the conversation_id from the server's previous response. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it. |