analyze
Identify memory leaks, fragmentation, and excessive allocations from .NET memory snapshots. Receive severity-based findings with actionable code suggestions to fix anti-patterns.
Instructions
Analyzes a memory snapshot using built-in rules to detect leaks, fragmentation, excessive allocations, and anti-patterns. Returns findings with severity, description, and optional code suggestions.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"snapshotId": "<snapshotId>"
},
"name": "analyze"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| afterPath | No | Path to 'after' snapshot for comparison | |
| beforePath | No | Path to 'before' snapshot for comparison | |
| snapshotId | Yes | Snapshot ID or path to analyze | |
| snapshotPath | No | Path to snapshot file | |
| workingDirectory | No | Working directory for resolving relative paths |