roslyn:get_attributes
Find all code symbols decorated with a specific attribute, like Obsolete or Serializable. Narrow results by project or file scope using optional parameters.
Instructions
Find all symbols with specific attributes.
USAGE:
Find obsolete: get_attributes("Obsolete")
Find serializable: get_attributes("Serializable")
Scope to project: get_attributes("Obsolete", scope="project:MyProject")
Scope to file: get_attributes("Obsolete", scope="file:MyClass.cs")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | 'solution' (default), 'project:Name', or 'file:path' | |
| maxResults | No | Maximum results (default: 100) | |
| attributeName | Yes | Attribute name (e.g., 'Obsolete', 'Serializable', 'JsonProperty') |