annotated
Find classes, methods, fields and parameters carrying a given annotation type, returning each declaration plus the annotation line with its attribute values.
Instructions
Classes, methods, fields and parameters carrying an annotation, with the annotation's line (which holds its attribute values).
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": {
"annotation": "<annotation>"
},
"name": "annotated"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max items | |
| scope | No | Only results in this package (prefix or glob) or, with '/', source path glob | |
| offset | No | Items to skip | |
| annotation | Yes | Annotation type, e.g. `Deprecated`, `Entity`, `org.junit.jupiter.api.Test` | |
| project_root | No | Checkout or worktree to query (any directory in it); default: where the server started |