roslyn:get_containing_member
Finds the enclosing method, property, or class at a specific line and column in a C# file, returning its name, kind, and signature. Provides context for code understanding.
Instructions
Get information about the containing method/property/class at a position. Returns the enclosing symbol's name, kind, and signature. Useful for understanding context. IMPORTANT: Uses ZERO-BASED coordinates (editor line - 1).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Zero-based line number | |
| column | Yes | Zero-based column number | |
| filePath | Yes | Absolute path to source file |