export_sourcemap
Generates a Rojo-style sourcemap.json from a synced script mirror so luau-lsp can resolve require paths and provide IntelliSense/type info in VS Code.
Instructions
Generate a Rojo-style sourcemap.json from a place's synced script mirror — the file luau-lsp needs to resolve require paths and give IntelliSense/type info in VS Code (and the foundation the typecheck tool will build on). Pure filesystem walk of the on-disk mirror: no Studio round-trip, no mutation. Writes to /sourcemap.json by default. Point luau-lsp at it via the luau-lsp.sourcemap.sourcemapFile setting. (Reflects scripts + folders in the mirror; non-script instances aren't on disk so aren't represented — that's all luau-lsp needs for requires.)
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": "export_sourcemap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| place | No | Target place (PlaceId or project name). Defaults to the bound/sole connected place. | |
| output | No | output path (absolute, or relative to the mirror root; default sourcemap.json) |