worktree_apply
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.
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": "worktree_apply"
}
}Input 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. |