Browse documentation

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.

Try it locally in the Glider playground

Parameters

NameTypeRequiredDescription
responseDetailstringNocompact returns results and actionable state. full adds diagnostic metadata under responseDiagnostics. Default: "compact"

Examples

Replace sample paths and symbol keys with values from your workspace.

Unload the current workspace

Arguments
{}
Full MCP request
Full MCP request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "unload",
    "arguments": {}
  }
}
Illustrative response
{
  "success": true,
  "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"
  }
}

Response Notes

Returns whether a workspace had been loaded, the previous loaded path/kind, and the cleared cache/file-watcher state after unload. Results use top-level fields with success. Compact is the default; full adds responseDiagnostics. Both modes retain errors, coverage, partial state, and recovery advice.