[solution]
Loads a C# solution (.sln/.slnx) or project (.csproj) for analysis. Optionally enables automatic file watching when workingDirectory is provided.
Loading is the point where Glider turns a folder of files into a project-aware semantic model of the solution.
After load, the model can ask semantic questions against the same project graph the C# toolchain understands.
| Name | Type | Required | Description |
|---|---|---|---|
| filePath | string | Yes | Absolute path to .sln, .slnx, or .csproj file to load. |
| workingDirectory | string | No | Optional working directory to watch for file changes. When provided, enables automatic sync of changed files. |
| includeProjects | boolean | No | Include detailed project information in response. Default is false. |
Load a solution
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "load",
"arguments": {
"filePath": "/Users/dev/MyProject/MyProject.sln"
}
}
}{
"success": true,
"data": {
"loadedPath": "/Users/dev/MyProject/MyProject.sln",
"loadedKind": "solution",
"projectCount": 2,
"projects": [
{
"name": "MyProject",
"filePath": "/Users/dev/MyProject/MyProject.csproj",
"documentCount": 42
}
],
"fileWatcher": {
"enabled": true,
"watchedDirectory": "/Users/dev/MyProject"
},
"cache": {
"cacheStatus": "valid",
"revision": 1,
"lastRefreshUtc": "2026-01-23T21:06:33.123Z",
"loadedKind": "solution",
"loadedPath": "/Users/dev/MyProject/MyProject.sln"
}
},
"meta": {
"durationMs": 123,
"cancelled": false,
"timedOut": false,
"timeoutMs": 1200000
},
"error": null
}Load with file watching
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "load",
"arguments": {
"filePath": "/Users/dev/MyProject/MyProject.sln",
"workingDirectory": "/Users/dev/MyProject",
"includeProjects": true
}
}
}{
"success": true,
"data": {
"loadedPath": "/Users/dev/MyProject/MyProject.sln",
"loadedKind": "solution",
"projectCount": 2,
"projects": [
{
"name": "MyProject",
"filePath": "/Users/dev/MyProject/MyProject.csproj",
"documentCount": 42
}
],
"fileWatcher": {
"enabled": true,
"watchedDirectory": "/Users/dev/MyProject"
},
"cache": {
"cacheStatus": "valid",
"revision": 1,
"lastRefreshUtc": "2026-01-23T21:06:33.123Z",
"loadedKind": "solution",
"loadedPath": "/Users/dev/MyProject/MyProject.sln"
}
},
"meta": {
"durationMs": 123,
"cancelled": false,
"timedOut": false,
"timeoutMs": 1200000
},
"error": null
}Load a standalone project
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "load",
"arguments": {
"filePath": "/Users/dev/MyProject/MyProject.csproj"
}
}
}{
"success": true,
"data": {
"loadedPath": "/Users/dev/MyProject/MyProject.sln",
"loadedKind": "solution",
"projectCount": 2,
"projects": [
{
"name": "MyProject",
"filePath": "/Users/dev/MyProject/MyProject.csproj",
"documentCount": 42
}
],
"fileWatcher": {
"enabled": true,
"watchedDirectory": "/Users/dev/MyProject"
},
"cache": {
"cacheStatus": "valid",
"revision": 1,
"lastRefreshUtc": "2026-01-23T21:06:33.123Z",
"loadedKind": "solution",
"loadedPath": "/Users/dev/MyProject/MyProject.sln"
}
},
"meta": {
"durationMs": 123,
"cancelled": false,
"timedOut": false,
"timeoutMs": 1200000
},
"error": null
}Returns the loaded path, project list, watcher state, and cache metadata.