save_snapshot
Save a named memory snapshot before code changes, then capture another after to compare and measure the impact.
Instructions
Save a named memory snapshot for later comparison. Take a snapshot before making a code change, then take another after to see the impact. Use compare_snapshots to see the diff.
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": {
"name": "<name>"
},
"name": "save_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A name for this snapshot (e.g., "before-fix", "after-optimization") | |
| forceGC | No | Force garbage collection before snapshot (default: true) |