Delete what plan_clean listed
cleanDeletes only the targets listed in an approved plan_id, refuses if they changed, and can reinstall dependencies afterward for Node.js or Deno install repairs.
Instructions
Delete exactly what plan_clean listed. Requires its plan_id and the same options; refuses if the targets changed. Optionally reinstall afterwards.
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": {
"plan_id": "<plan_id>"
},
"name": "clean"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Project root containing package.json. Defaults to the server's working directory. | |
| only | No | ||
| install | No | Run the package manager's install afterwards. | |
| plan_id | Yes | plan_id from plan_clean. | |
| lockfiles | No |