script_source
Read a script's full source or overwrite it entirely in Roblox Studio. Use it for whole-file reads and replacements; prefer patching or line edits for small changes to avoid resending the file.
Instructions
Read a script's full Source, or replace all of it. Reading is read-only; writing overwrites the whole script (open editor tabs update too) and is blocked in read-only mode. For small changes prefer patch_script (anchored find/replace) or edit_script_lines (a line range), which don't resend the file. To search across scripts use grep_scripts.
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>"
},
"name": "script_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Script, LocalScript or ModuleScript, e.g. "ServerScriptService.MusicService". Dot path from the DataModel root, e.g. "Workspace.Map.Door" or "StarterGui.HUD.Frame". A leading "game." is optional; a duplicate sibling name takes the suffix Tufan prints, e.g. "Part (2)". | |
| place | No | Target place (PlaceId or project name). Defaults to the bound/sole connected place. | |
| source | No | New full Source. Omit to read the current Source instead. |