unload

[solution]

Unloads the current in-memory workspace and stops file watching. Use before external builds or IDE work when you need Glider to release the loaded workspace.

Why this tool exists

Unloading lets an agent close the current workspace and clear Glider's analysis state before switching contexts.

How it helps the agent

It prevents stale project facts from leaking into the next workspace-oriented task.

Try it locally in the GliderMCP playground

This tool requires no parameters.

Examples

Unload the current workspace

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "unload",
    "arguments": {}
  }
}
Response
{
  "success": true,
  "data": {
    "unloaded": true,
    "hadLoadedSolution": true,
    "previousLoadedPath": "/Users/dev/MyProject/MyProject.sln",
    "previousLoadedKind": "solution",
    "previousPendingChanges": 0,
    "cache": {
      "cacheStatus": "empty",
      "revision": 3,
      "lastRefreshUtc": null,
      "loadedKind": "none",
      "loadedPath": null
    },
    "fileWatcher": {
      "enabled": false,
      "watchedDirectory": null,
      "pendingChanges": 0,
      "watcherWasEnabled": true,
      "previousWatchedDirectory": "/Users/dev/MyProject"
    }
  },
  "meta": {
    "durationMs": 25,
    "cancelled": false,
    "timedOut": false,
    "timeoutMs": 1200000
  },
  "error": null
}

Response Notes

Returns whether a workspace had been loaded, the previous loaded path/kind, and the cleared cache/file-watcher state after unload.

↑/↓ NavigateEnter OpenSpace Expand