load

[solution]

Loads a C# solution (.sln/.slnx) or project (.csproj) for analysis. File watching is enabled by default at the enclosing git repository root; set workingDirectory to watch a different root, or noWatch to disable watching. Calling load for a path that is already loading waits for the in-flight load and reuses it.

Why this tool exists

Loading is the point where Glider turns a folder of files into a project-aware semantic model of the solution.

How it helps the agent

After load, the model can ask semantic questions against the same project graph the C# toolchain understands.

Try it locally in the Glider playground

Parameters

NameTypeRequiredDescription
filePathstringYesAbsolute path to .sln, .slnx, or .csproj file to load.
workingDirectorystringNoWorking directory to watch for file changes. Defaults to the enclosing git repository root of the loaded file (or its directory outside a repository). Enables automatic sync of changed files.
includeProjectsbooleanNoInclude detailed project information in response. Default is false.
noWatchbooleanNoDisable file watching for this load. Cannot be combined with workingDirectory. Default is false.

Examples

Load a solution (watches the repository root)

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "load",
    "arguments": {
      "filePath": "/Users/dev/MyProject/MyProject.sln"
    }
  }
}
Response
{
  "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 a custom watch root

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "load",
    "arguments": {
      "filePath": "/Users/dev/MyProject/MyProject.sln",
      "workingDirectory": "/Users/dev/MyProject",
      "includeProjects": true
    }
  }
}
Response
{
  "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 without file watching

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "load",
    "arguments": {
      "filePath": "/Users/dev/MyProject/MyProject.csproj",
      "noWatch": true
    }
  }
}
Response
{
  "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
}

Response Notes

Returns the loaded path, project list, watcher state, and cache metadata.

↑/↓ NavigateEnter OpenSpace Expand