script_set_source
Replace the full Luau source of any Roblox Script, LocalScript, or ModuleScript by providing its path or UUID and the new code.
Instructions
Overwrite the full source code of a Script, LocalScript, or ModuleScript.
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": {
"target": "<target>",
"source": "<source>"
},
"name": "script_set_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | The complete new Luau source code to write. | |
| target | Yes | Full path or UUID of the script. |