Preview a cleanup
plan_cleanPreview a project cleanup across workspaces by listing node_modules, build output, caches, and optional lockfiles with sizes, plus a plan_id for the actual clean. Read-only.
Instructions
List what a cleanup would delete (node_modules, build output, caches; lockfiles only if lockfiles=true) across the project and its workspaces, with sizes and a plan_id for clean. Read-only.
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": "plan_clean"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Project root containing package.json. Defaults to the server's working directory. | |
| only | No | Only these directory names/globs (e.g. ["node_modules"]) instead of the configured list. | |
| lockfiles | No | Also remove lockfiles (changes resolved versions on reinstall). |