searchcode
Perform semantic code searches with metadata extraction and AST-aware chunking. Search within specified folders, file types, and exclude patterns to retrieve relevant code snippets efficiently.
Instructions
Semantic code search with metadata extraction and AST-aware chunking
Input Schema
Name | Required | Description | Default |
---|---|---|---|
extensions | No | Optional comma-separated list of file extensions to include (default: js,ts) | |
folders | No | Optional comma-separated list of folders to search (defaults to working directory) | |
ignores | No | Optional comma-separated list of patterns to ignore (default: node_modules) | |
query | Yes | Semantic search query for code | |
topK | No | Optional number of results to return (default: 8) | |
workingDirectory | No | Optional working directory for the operation (defaults to server working directory) |
Input Schema (JSON Schema)
{
"properties": {
"extensions": {
"description": "Optional comma-separated list of file extensions to include (default: js,ts)",
"type": "string"
},
"folders": {
"description": "Optional comma-separated list of folders to search (defaults to working directory)",
"type": "string"
},
"ignores": {
"description": "Optional comma-separated list of patterns to ignore (default: node_modules)",
"type": "string"
},
"query": {
"description": "Semantic search query for code",
"type": "string"
},
"topK": {
"description": "Optional number of results to return (default: 8)",
"type": "number"
},
"workingDirectory": {
"description": "Optional working directory for the operation (defaults to server working directory)",
"type": "string"
}
},
"required": [
"query"
],
"type": "object"
}