code_research
Retrieves precise code snippets from a specified codebase using natural language queries, helping you understand how features are implemented.
Instructions
Retrieves precise code snippets related to the query from a specific codebase.
Use this to understand how features are implemented.
Args:
query: Natural language question about the codebase
directory: Path to the codebase directory to search
limit: Maximum number of results to return (default: 5)
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>",
"directory": "<directory>"
},
"name": "code_research"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| directory | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |