Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
extensionsNoOptional comma-separated list of file extensions to include (default: js,ts)
foldersNoOptional comma-separated list of folders to search (defaults to working directory)
ignoresNoOptional comma-separated list of patterns to ignore (default: node_modules)
queryYesSemantic search query for code
topKNoOptional number of results to return (default: 8)
workingDirectoryNoOptional working directory for the operation (defaults to server working directory)

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AnEntrypoint/mcp-repl'

If you have feedback or need assistance with the MCP directory API, please join our Discord server