Roblox Set Script Source
roblox_set_script_sourceReplace entire source code of a Script, LocalScript, or ModuleScript in Roblox Studio by providing the instance path and new code.
Instructions
Replace the entire source code of a Script, LocalScript, or ModuleScript in Roblox Studio.
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>",
"source": "<source>"
},
"name": "roblox_set_script_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Full instance path of the script. | |
| source | Yes | New source code for the script. | |
| waitForResponseMs | No | How long to wait for a runtime response. |