Run saved search
civicrm_run_saved_searchExecute a pre-defined saved search to retrieve its rows. Safely run complex queries curated by an administrator.
Instructions
Execute a SavedSearch and return its rows via SearchDisplay.run. Pair with civicrm_list_saved_searches to discover available searches. This is the safest and cheapest way to run complex queries — the admin curates the query in the UI, the agent just calls it by name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| search | Yes | SavedSearch name (string) or id (number). | |
| display | No | Optional SearchDisplay name to render with. Defaults to the search's default display (same name as the saved search). | |
| filters | No | Optional filter values to apply (matches the display's filter inputs). Pass `{}` if the display has no filters. |