search_reusable_function
Find reusable helper functions in Java/JavaScript source code by describing intent with keywords, reducing redundant code.
Instructions
Search Java/JavaScript source for reusable helper functions before adding new code.
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": {
"project_name": "<project_name>",
"query": "<query>"
},
"name": "search_reusable_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_name | Yes | Name of the analyzed project. | |
| query | Yes | Function intent or keyword, e.g. "random string" or "uuid". | |
| language | No | Optional language filter: "java", "javascript", "js", or "all". | |
| limit | No | Maximum number of candidates to return. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||