clean_claude_directory
Analyze and clean the .claude directory by removing debug logs, empty todos, old snapshots, and orphaned data to free disk space.
Instructions
Analyze and clean the .claude directory. Removes debug logs, empty todos, old snapshots, and orphaned data to free disk space.
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_claude_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Preview without deleting. Default: true | |
| days | No | Age threshold in days. Default: 7 | |
| category | No | Clean specific category: debug, todos, shell-snapshots, file-history, session-env, cache |