roslyn:organize_usings_batch
Organize and remove unused using directives across multiple C# files. Preview changes by default; set preview=false to apply them to disk.
Instructions
Organize using directives for multiple files in a project. Supports file pattern filtering (e.g., '.cs', 'Services/.cs'). PREVIEW mode by default - set preview=false to apply changes.
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": "roslyn:organize_usings_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preview | No | Preview mode (default: true). Set to false to apply changes to disk. ALWAYS preview first! | |
| filePattern | No | Optional: Glob pattern to filter files (e.g., '*.cs', 'Services/*.cs', '*Repository.cs'). Matches against file names, not full paths. | |
| projectName | No | Optional: Project name to process. If omitted, processes all projects in solution. |