write_script
Replace a Roblox Script, LocalScript, or ModuleScript source by path to update code in Studio, with undoable changes you can roll back using Ctrl+Z.
Instructions
Replace the source of a Script/LocalScript/ModuleScript by path (undoable).
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 |