[solution]
Loads a workspace root and initializes TypeScript or JavaScript project contexts.
Loading turns a folder of JS/TS files into project-aware TypeScript language-service state.
After load, the model can ask semantic questions using the same workspace graph across calls.
Try it locally in the TGlider playground
| Name | Type | Required | Description |
|---|---|---|---|
| rootPath | string | Yes | Absolute path to the workspace root. |
| watch | boolean | No | Start file watching after load. Default is true. |
Load a local TypeScript workspace
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "load",
"arguments": {
"rootPath": "/Users/dev/app",
"watch": true
}
}
}Returns loaded projects, skipped configs, revision, and watcher state.