worktree_apply
Destructive
Apply selected audit recommendation items (policy/hook/seed/tool-prune) after user consent. Requires confirm=true to mutate; without it returns the plan. Never removes worktrees or user files.
Instructions
Apply selected audit recommendation items (policy/hook/seed/tool-prune) after user consent. Requires confirm=true to mutate; without it returns the plan. Never removes worktrees or user files.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | No | Audit item ids to apply (e.g. policy, hook, seed:pnpm) | |
| json | No | Return JSON instead of text | |
| confirm | No | true mutates; false or omitted returns the plan | |
| all_safe | No | Apply every safe item that needs no extra consent | |
| workspace_path | No | Absolute thread workspace directory; must map to this project. Omit only when the server cwd is the thread workspace. |