find_annotation_usages
Locate all occurrences of a given annotation in your Java project. Provide the fully qualified annotation name to see every location where it is applied.
Instructions
Find all usages of an annotation type in the project.
JDT-UNIQUE: This fine-grained search is not available in LSP.
USAGE: Provide fully qualified annotation name as typeName
OUTPUT: All locations where the annotation is applied
Examples:
find_annotation_usages(typeName="org.springframework.beans.factory.annotation.Autowired")
find_annotation_usages(typeName="org.junit.jupiter.api.Test")
find_annotation_usages(typeName="javax.persistence.Entity")
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| typeName | Yes | Fully qualified annotation type name (e.g., 'org.springframework.beans.factory.annotation.Autowired') | |
| maxResults | No | Maximum results to return (default 100) |