write_script
Overwrite an existing Roblox Studio script's source code by providing its path and new Luau source. Use to update or replace script logic during automated scene and script building.
Instructions
Overwrite Source of an existing 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": {
"path": "<path>",
"source": "<source>"
},
"name": "write_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| source | Yes |