search_codebase
Search an indexed codebase for relevant code snippets using semantic vector search. Optionally filter by project or file type.
Instructions
Search the indexed codebase for relevant code snippets.
Args:
query: Search query text
top_k: Number of results to return (default: 5)
project: Project name to search within (optional)
file_types: List of file extensions to filter (e.g., [".py", ".js"])
Returns:
Dictionary with search results, metadata, and timing info
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_codebase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| top_k | No | ||
| project | No | ||
| file_types | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |