Get the content of a script in the Roblox Game Client
get-script-contentRetrieve decompiled Roblox script source by path or client-side getter code, optionally limiting results to a startLine/endLine range for large scripts.
Instructions
Get decompiled source for a Roblox script by path or getter code. Use startLine/endLine for a focused range when the full script is large. Signature: { scriptGetterSource: string?, scriptPath: string?, startLine: number?, endLine: number?, threadContext: number? }. Phase: orchestrate; cost=medium; idempotency=read-only. Requires: active-client, resolved-target. Capabilities: decompile. Produces: structured-observation. Safety: read-only. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| 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. | |
| scriptPath | No | The path to the script to get the content of (e.g. 'game.Workspace.MyScript'). | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server 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) |