delete_script_lines
Delete specified lines from a Roblox script by providing its instance path and the inclusive start and end line numbers from the numberedSource field.
Instructions
Delete specific lines from a Roblox script. IMPORTANT: Use the "numberedSource" field from get_script_source to identify the correct line numbers.
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": {
"instancePath": "<instancePath>",
"startLine": "<startLine>",
"endLine": "<endLine>"
},
"name": "delete_script_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endLine | Yes | Last line to delete (inclusive). Get this from the "numberedSource" field. | |
| startLine | Yes | First line to delete (1-indexed). Get this from the "numberedSource" field. | |
| instancePath | Yes | Roblox instance path to the script (e.g., "game.ServerScriptService.MainScript") |