Get the content of a script in the Roblox Game Client
get-script-contentRetrieves decompiled source code of a Roblox script by path or script proxy, with optional line range for large scripts.
Instructions
Get decompiled source for a Roblox script by path, script proxy, or getter code. Use startLine/endLine for a focused range when the full script is large.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scriptGetterSource | No | The code that fetches the script object from the game (should return a script object, and MUST be client-side only, will not work on Scripts with RunContext set to Server) | |
| scriptPath | No | The path to the script to get the content of. If passing a GC'd script proxy (e.g. <ScriptProxy: 1_316566>), use the literal angle brackets < > — do NOT HTML-encode them as < or >. | |
| startLine | No | Optional start line number (1-based) to return only a range of lines from the decompiled script. If omitted, returns the full script. | |
| endLine | No | Optional end line number (1-based, inclusive) to return only a range of lines. Defaults to end of script if startLine is set but endLine is omitted. |