find_annotation_usages
Find all locations where a given annotation is applied in your Java project. Specify the fully qualified annotation name to get precise usage locations.
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) |