script_read
Reads Roblox script source with line numbers, including unsaved Studio editor changes, and prefers synced local files to inspect or verify code.
Instructions
Read a script's source (includes unsaved editor changes), with line numbers. Prefer the local files if the place is synced (sync_pull).
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_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| path | Yes | e.g. ServerScriptService.Main | |
| start | No | ||
| studio | No | Optional. Target Studio (name substring, place id or id). Only needed when several Studios are open and none was selected. |