sync_sourcemap
Generate a Rojo-compatible sourcemap.json and optional .luaurc from Studio so Luau LSP, luau-analyze, and coding agents resolve require() paths and instances.
Instructions
Generate a Rojo-compatible sourcemap.json (and optional .luaurc) from Studio so Luau LSP, luau-analyze, and coding agents resolve require() paths and instances.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sync_sourcemap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Synced scripts folder. Default ./roblox-src. | |
| out | No | Output path. Default ./sourcemap.json. | |
| luaurc | No | Create .luaurc if missing. Default false. | |
| studio | No | Optional. Target Studio (name substring, place id or id). Only needed when several Studios are open and none was selected. | |
| max_depth | No | Instance hierarchy depth. Default 6. |