Skip to main content
Glama

scoped_search_replace_preview

Preview text replacements on specific pages before applying changes. Control scope by folder, template, category, or page IDs to avoid site-wide modifications.

Instructions

Preview a search-and-replace limited to a subset of pages. Safer than site-wide replacement.

Scope options (all optional — leave blank to match all pages):

  • content_ids: specific page IDs

  • folder_path: pages under /blog, /docs, etc.

  • template_name: pages using "Concept Page", "Blog Post", etc.

  • category: pages with a matching category

Example: {"search": "old text", "replace": "new text", "folder_path": "/blog"}

Always run preview before execute.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
auto_republishNoIf true (execute only), re-publish all previously-published pages immediately after updating them (saves a separate publish_multiple call)
categoryNoLimit to pages in this category
content_idsNoLimit to specific content IDs
folder_pathNoLimit to pages whose URL starts with this path (e.g. /blog)
regexNoIf true, treat search as a Go regular expression. Use $1, $2 for capture group references in replace.
replaceYesReplacement text (empty string to delete)
searchYesText to search for,required
template_nameNoLimit to pages using this template name (e.g. 'Concept Page')
version_commentNoVersion comment for updated pages

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