Skip to main content
Glama

search_replace_execute

Execute site-wide content replacements across all pages in LightCMS. Modify text globally with optional regex support and automatic republishing.

Instructions

Execute a site-wide search-and-replace across all content. Modifies every matching page permanently.

MANDATORY workflow:

  1. Run search_replace_preview and show the user which pages will be affected.

  2. Get explicit user confirmation before executing.

  3. Run search_replace_execute with a clear version_comment.

Set auto_republish: true to immediately re-publish all previously-published pages after updating them, collapsing the execute + publish_multiple flow into one call.

For targeted replacements, use scoped_search_replace_execute instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
auto_republishNoIf true, re-publish all previously-published pages immediately after updating them (saves a separate publish_multiple call)
regexNoIf true, treat search as a Go regular expression. Use $1, $2 for capture group references in replace.
replaceYesText to replace with,required
searchYesText to search for,required
version_commentNoComment for version history (defaults to 'Bulk search and replace')

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jonradoff/lightcms'

If you have feedback or need assistance with the MCP directory API, please join our Discord server