mcp_search_replace
Search and replace strings in WordPress database tables while preserving serialized data; preview changes with dry-run before applying.
Instructions
Search and replace strings in database (serialization-safe)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site": "<site>",
"search": "<search>",
"replace": "<replace>"
},
"name": "mcp_search_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site id (see list_sites) | |
| search | Yes | String to search for | |
| tables | No | Specific tables (empty = all) | |
| dry_run | No | Preview without applying | |
| replace | Yes | Replacement string |