search_code
Search an indexed codebase semantically with natural language to return relevant code chunks and similarity scores, with filters for language, path, and minimum score.
Instructions
Search the indexed codebase semantically using natural language. Returns relevant code chunks with similarity scores.
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": "search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Natural language search query (e.g., "find authentication logic") | |
| language | No | Filter by programming language | |
| minScore | No | Minimum similarity score 0-1 (default: 0.7) | |
| maxResults | No | Maximum number of results to return (default: 10) | |
| pathPattern | No | Filter by file path pattern (regex) |