search_code
Find method/field declarations, annotations, references, and string constants in Maven dependencies by querying class-file metadata.
Instructions
Find method/field declarations, annotations, references, and real string constants from lazy class-file metadata.
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>",
"kind": "<kind>"
},
"name": "search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| mode | No | balanced | |
| limit | No | ||
| query | Yes | ||
| format | No | Output format. | text |
| jarPath | No | Absolute path to an exact JAR. Fastest selector. | |
| coordinates | No | groupId:artifactId[:version[:classifier]]. | |
| jarDirectory | No | Absolute directory to search for a JAR on demand. | |
| jarNamePrefix | No | JAR basename prefix. | |
| workspacePath | No | Absolute Java workspace path. Maven is optional. |