find_annotation_usages
Locates every application of a specified annotation throughout a Java project. Provide the fully qualified annotation name to retrieve all 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) |