[solution]
Returns cache metadata for the loaded solution/project, and can optionally force a refresh from disk.
| Name | Type | Required | Description |
|---|---|---|---|
| forceRefresh | boolean | No | When true, reloads from disk before returning cache info. Default is false. |
| timeout_ms | number | No | Timeout in milliseconds. Use 0 to disable. Default is 60000. |
Get cache info
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "solution_cache",
"arguments": {}
}
}{
"success": true,
"data": {
"cacheStatus": "valid",
"revision": 2,
"lastRefreshUtc": "2026-01-12T21:07:10.000Z",
"loadedKind": "solution",
"loadedPath": "/Users/dev/MyProject/MyProject.sln",
"forceRefresh": false
},
"error": null
}Force refresh from disk
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "solution_cache",
"arguments": {
"forceRefresh": true
}
}
}{
"success": true,
"data": {
"cacheStatus": "valid",
"revision": 2,
"lastRefreshUtc": "2026-01-12T21:07:10.000Z",
"loadedKind": "solution",
"loadedPath": "/Users/dev/MyProject/MyProject.sln",
"forceRefresh": false
},
"error": null
}Returns cache status, revision, and last refresh time
Go to Playground to test this tool interactively.