clean_traces
Selectively delete Claude Code traces based on category, age, or project, with a dry-run preview to prevent accidental removal.
Instructions
Selectively clean Claude Code traces by category, age, or project.
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_traces"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| categories | No | Comma-separated categories to clean | |
| days | No | Only clean traces older than this many days | |
| project | No | Only clean traces for specific project | |
| dry_run | No | Preview without deleting. Default: true |