find_annotation_usages
Locate all instances where a specific Java annotation is used in your project to understand its application and dependencies.
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 OUTPUT: All locations where the annotation is applied
Examples:
find_annotation_usages(annotation="org.springframework.beans.factory.annotation.Autowired")
find_annotation_usages(annotation="org.junit.jupiter.api.Test")
find_annotation_usages(annotation="javax.persistence.Entity")
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| annotation | Yes | Fully qualified annotation type name (e.g., 'org.springframework.beans.factory.annotation.Autowired') | |
| maxResults | No | Maximum results to return (default 100) |