create_script
Creates Script, LocalScript, or ModuleScript objects in Roblox Studio, letting agents add Luau source code to a specified parent path.
Instructions
Create a new Script/LocalScript/ModuleScript with source code.
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": {
"scriptType": "<scriptType>",
"name": "<name>",
"parent": "<parent>"
},
"name": "create_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| parent | Yes | Dotted parent path, e.g. 'ServerScriptService', 'StarterPlayer.StarterPlayerScripts' | |
| source | No | Initial Luau source | |
| scriptType | Yes | Class of script to create |