write_script
Writes full Lua source code directly to Roblox Studio Script, LocalScript, or ModuleScript instances; set force=true to bypass safety checks when needed.
Instructions
Write full source to a Script/LocalScript/ModuleScript. Use force=true to bypass safety checks.
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 | Path to the script | |
| force | No | Bypass safety checks (default false) | |
| client | No | Target a specific Studio client by name (as shown on the panel, e.g. "studio"). Omit to auto-pick: the only active client, or the most recently active one when several are connected. | |
| source | Yes | Full Lua source code to write |