Manage script source code and execute arbitrary Luau code in Studio.
Included Tools
| Tool | Description |
|---|---|
manage_scripts | Create, read, edit, search, and analyze script dependencies |
execute_luau | Execute arbitrary Luau code in the Roblox Studio sandbox |
Key Workflows
Editing a Script
"In the GameManager script in ServerScriptService, change maxPlayers from 12 to 24"
Use manage_scripts’s search to find the line, then edit_replace to modify it.
Validate Syntax Without Playtest
"Validate the Luau syntax in ServerScriptService.GameManager and show every error"
manage_scripts.validate checks either raw source or one existing Script path. It does not start Playtest and checks only whether the Luau source parses.
Turn on Controls → Luau Syntax Validation in Dashboard to check the source that was actually saved after successful set_source, edit_replace, edit_insert, and edit_delete calls. A syntax error or unavailable check does not undo the applied change, so the AI can fix it in the same Script immediately.
Bulk Refactoring
"Replace 'OldModule' with 'NewModule' across all scripts"
Use manage_scripts’s replace to update multiple scripts in one operation.
Querying Runtime Data
"Calculate the average Health of all Humanoids currently in Workspace"
Use execute_luau to run arbitrary Luau code and retrieve runtime data.
Action Reference
Manage Scripts
| Action | Description |
|---|---|
get_source | Get script source code |
set_source | Set script source code |
create | Create a new script |
delete | Delete a script |
edit_replace | Replace specific lines in a script |
edit_insert | Insert lines at a specific position |
edit_delete | Delete specific lines |
search | Search for text in scripts |
get_dependencies | Get script dependencies |
validate | Check Luau syntax in raw source or an existing Script |
replace | Bulk replace across multiple scripts |
Execute Luau
Executes arbitrary Luau code in the Roblox Studio sandbox.
- Blocked services: HttpService, DataStoreService, MessagingService
- No access: CoreGui, CorePackages