git_clean
Remove untracked files from a Git working tree to clean your repository. Supports dry-run and directory removal.
Instructions
Remove untracked files from the working tree.
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": "git_clean"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional local working directory or repository path. | |
| dryRun | No | Use --dry-run. Set false to delete files. | |
| directories | No | Remove untracked directories too. |