search_code
Find relevant code in any project by entering a natural language query. Uses AI semantic search to return matching code context.
Instructions
Search for relevant code in a codebase using AI-powered semantic search.
Args: query: Natural language description of what you're looking for. project_root: Absolute path to the project root directory.
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>",
"project_root": "<project_root>"
},
"name": "search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| project_root | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |