replace_in_campaign_body
Replaces every exact, case-sensitive occurrence of text in a campaign body and saves it, reporting the count; leaves the campaign unchanged if no match is found.
Instructions
Replace every occurrence of a literal text in a campaign's body (case-sensitive, not a regex) and save the campaign. Reports how many replacements were made and changes nothing if the text is not found. For patterns use regex_replace_in_campaign_body; for several replacements in one save use batch_replace_in_campaign_body.
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": {
"campaign_id": "<campaign_id>",
"search": "<search>",
"replace": "<replace>"
},
"name": "replace_in_campaign_body"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | Yes | Exact text to find (case-sensitive, not a regex) | |
| replace | Yes | Text to put in place of every match; may be empty to delete | |
| campaign_id | Yes | Campaign ID |