roslyn:get_attributes
Find all symbols in your .NET/C# solution that have a specific attribute, with optional scoping to a project or file.
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")
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"attributeName": "<attributeName>"
},
"name": "roslyn:get_attributes"
}
}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') |