roslyn:get_code_actions_at_position
Retrieve available code fixes and refactorings at a specific position in C# source code using Roslyn compiler analysis.
Instructions
Get ALL available code actions (fixes + refactorings) at a position. This is the master tool that exposes 100+ Roslyn refactorings.
USAGE: get_code_actions_at_position(filePath, line, column) or with selection: add endLine, endColumn OUTPUT: List of actions with title, kind (fix/refactoring), equivalenceKey WORKFLOW: (1) Call this to see available actions, (2) Use apply_code_action_by_title to apply one IMPORTANT: Uses ZERO-BASED coordinates (editor line - 1).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to source file | |
| line | Yes | Zero-based line number | |
| column | Yes | Zero-based column number | |
| endLine | No | Optional: end line for selection | |
| endColumn | No | Optional: end column for selection | |
| includeCodeFixes | No | Include fixes for diagnostics (default: true) | |
| includeRefactorings | No | Include refactorings (default: true) |