Find every mention of a phrase across your whole site

ContentBeginner~5 minUpdated

Before you start

The search-content ability turned on for the user you bound the agent to. No writes are involved. Search covers posts and pages by default, plus any other content type the site owner has exposed to agents. Products, events, listings and other plugin content are not searched unless exposed.

Before you rename a product, retire an old URL, or fix a claim you got wrong, you want to know exactly how many places it shows up. Checking posts, then pages, then everything else one screen at a time is how you miss the one straggler that keeps the old wording alive. This prompt runs a single search across every content type the connection can reach and hands you the whole list, so you can see the blast radius first. It reads and reports, and it changes nothing.

The prompt
Search my whole site for every place this phrase appears: [old product name].
Read only, change nothing.
Cover every content type you can search in one pass, not just posts. For each
hit, give me the title, the content type, and a short bit of the surrounding
text so I can tell whether it actually needs changing.
Group the results by content type and give me a count, so I can see how big a
job a rename would be before I commit to it. Then list the content types you
searched, from the site's exposed types, and tell me that anything not on that
list (products, events and listings, for example) was not covered.

Why this is safe to run

The one ability behind this is a search. It reads across the content types your site exposes and returns matches, and it has no way to edit, replace, or delete any of them. So running it is purely a way to look, and looking cannot break anything. The value is knowing the scope up front instead of discovering a forgotten mention weeks after a rename.

This pairs naturally with a find-and-replace when you are ready to actually make the change, but that is a separate, deliberate step with its own write ability and its own approval, and it only swaps plain visible text: a mention inside a tag or attribute such as an href or src is refused. This recipe stops at the search on purpose. Every call runs against the capability of the user you bound the agent to and lands in the Activity Log.

Already connected? Skip the paste. Ask your agent for the “find every mention across your site” recipe, or just ask where a phrase appears on your site, and it runs the same search on your own install.

How it works

  1. Search every content type the connection can reach in one pass for the phrase you name.
  2. Collect each place it appears with the title and a bit of surrounding context.
  3. Group the hits by content type so pages and posts are easy to tell apart.
  4. List the content types it searched, from the site's exposed types, and say what the list leaves out.
  5. Report the full list so you can see the blast radius before you touch anything.

Questions

Does this edit or replace anything it finds?
No. It only searches and reports. It reads across your content and hands you the list of matches, and it writes nothing. If you want to actually change those mentions, that is a separate find-and-replace step you run afterward, deliberately.
Does it search posts and pages, or everything?
One search spans every content type your connection can reach, so a single run covers posts, pages, and any other type the site owner has exposed to agents, instead of you checking each one separately. It does not reach content types that are not exposed, such as products, events or listings on a default setup, and it does not read menus, widgets or custom fields. The agent lists the types it searched, so anything missing from that list was not covered; check those with their own list tools.