find_and_replace_in_scripts
Replace plain text across every script in a place at once for codebase-wide renames. Run with dryRun true first to preview affected scripts and match counts before overwriting.
Instructions
Replace a piece of plain text in every script of the place at once, for renames across the codebase. Overwrites every match in every script. Run with dryRun true first to see which scripts and how many matches would change. For changes inside one script use patch_script.
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": {
"find": "<find>",
"replace": "<replace>"
},
"name": "find_and_replace_in_scripts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | Plain text to find (not a pattern) | |
| place | No | Target place (PlaceId or project name). Defaults to the bound/sole connected place. | |
| dryRun | No | List what would change without writing anything. Default false. | |
| replace | Yes | Replacement text |