jdx_usages
Finds usages of a type or member across workspace jars and source directories, with filters for reference kind, annotation values, and artifact labels.
Instructions
Find usages of a type or member across the workspace jars and source dirs. With kind=annotation, query may use annotation-use spelling '@Type(k=v)' (issue #26).
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": {
"query": "<query>"
},
"name": "jdx_usages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| in | No | Only matches from artifacts whose label matches this glob. | |
| kind | No | Edge kind: all, call, read, write, ref, new, throw (throws declarations, not ATHROW sites) or annotation (default all). | |
| limit | No | Maximum rows shown (default 50); the rest become a truncation footer. | |
| query | Yes | The symbol reference, type, pattern or glob the command asks about. Quote refs containing # or (). Empty only where the command allows it (ls, tree). | |
| where | No | Comma-separated annotation value predicates key=value (requires kind=annotation; e.g. forRemoval=true). Equivalent: query='@Type(k=v)' with kind=annotation. Issue #26. | |
| context | No | Snippet lines around each hit (default 0). | |
| exclude | No | Skip matches from artifacts whose label matches this glob. | |
| workspace | No | Named workspace to answer from (default: the workspace the server was started with). Stored workspaces only. |