clean_scratch_cache
Safely removes temporary scratch directories created by Antigravity Desktop sessions, with dry-run preview and optional age-based cleanup.
Instructions
Safely cleans temporary scratch directories (~/.gemini/antigravity/brain/*/scratch/) created by Antigravity Desktop during sessions.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "clean_scratch_cache"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, calculates the cleanable size without deleting files. | |
| older_than_hours | No | Cleans files older than the specified number of hours (0 means all). |