Get the content of a script in the Roblox Game Client
get-script-contentGet 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 |
|---|---|---|---|
| endLine | No | Optional end line number (1-based, inclusive). If omitted, returns up to maxLines lines. | |
| maxLines | No | Maximum lines to return (default: 80, max: 2000). Use explicit startLine/endLine ranges for large scripts. | |
| startLine | No | Optional start line number (1-based). If omitted, returns a bounded preview from line 1 instead of the full script. | |
| 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 >. | |
| maxOutputChars | No | Maximum characters to return to the model (default: 6000, max: 32000). Raise only when a single result genuinely needs more; large outputs degrade model performance. | |
| 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) |