Read script source
get_script_sourceRead the full source code of any Roblox Script, LocalScript, or ModuleScript by instance path, with 1-based line numbers for precise debugging and editing.
Instructions
Read the full Source of a Script, LocalScript or ModuleScript. Line numbers are 1-based in the returned text.
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": "get_script_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Instance path. Accepts "Workspace.Model.Part", "game.Workspace.Model.Part" or "game.Workspace[\"My Part\"].Model". Use "game" or omit for the DataModel root. |