Apply the planned fix
apply_fixExecutes an approved plan_id from diagnose/explain_error to repair broken Node.js/Deno installs via targeted rebuild, install, or clean reinstall; refuses changed plans and leaves lockfiles untouched.
Instructions
Run the fix plan from diagnose or explain_error: a targeted rebuild, an install, or (only when node_modules came from a different package manager) a clean reinstall. Requires that call's plan_id; refuses if the plan changed. Pass the same error text if the plan came from explain_error. Returns the command output and a re-check. Never touches lockfiles.
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": "apply_fix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Project root containing package.json. Defaults to the server's working directory. | |
| error | No | The error text, if the plan came from explain_error. | |
| native | No | Must match the diagnose call (default true for diagnose, false for explain_error). | |
| plan_id | Yes | plan_id from diagnose or explain_error. |