Roblox Edit Script Lines
roblox_edit_script_linesReplace a substring in a Roblox script's source by specifying the exact old text and new text to perform a search-and-replace operation.
Instructions
Replace a substring in a script's source using old_string/new_string matching, similar to search-and-replace.
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": {
"path": "<path>",
"oldString": "<oldString>",
"newString": "<newString>"
},
"name": "roblox_edit_script_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Full instance path of the script. | |
| oldString | Yes | Exact text to find in the script source. | |
| newString | Yes | Replacement text. | |
| waitForResponseMs | No | How long to wait for a runtime response. |