Tool

Search code

Search_code is a powerful AI-driven tool that enables fast and precise code search across all GitHub repositories. Utilizing GitHub's native search engine, it excels at finding exact symbols, functions, classes, or specific code patterns with ease.

GitHub

Features

  • Supports complex search queries using GitHub's powerful code search syntax.
  • Allows filtering by programming language, repository, file path, and more.
  • Provides options for sorting and paginating search results for efficient browsing.
  • Integrates seamlessly with GitHub MCP provider for real-time, comprehensive code indexing.
  • Ideal for developers seeking precise code snippets, symbols, or understanding large codebases quickly.

Benefits

  • Speeds up code discovery and reuse, enhancing developer productivity.
  • Enables accurate identification of functions, classes, and symbols across millions of repositories.
  • Helps in rapid troubleshooting by locating exact code patterns and implementations.
  • Supports advanced query syntax for tailored and efficient searches.
  • Facilitates better understanding of open-source projects by providing deep code visibility.

Description

Fast and precise code search across ALL GitHub repositories using GitHub's native search engine. Best for finding exact symbols, functions, classes, or specific code patterns.

Parameters

5 parameters

NameTypeDescription
orderenum

Sort order for results

pagenumber

Page number for pagination (min 1)

perPagenumber

Results per page for pagination (min 1, max 100)

queryrequiredstring

Search query using GitHub's powerful code search syntax. Examples: 'content

language
org
', 'NOT is
language
OR language
', 'repo
/github-mcp-server'. Supports exact matching, language filters, path filters, and more.

sortstring

Sort field ('indexed' only)

Ready to vibe automate?

Join thousands of people who have transformed their workflows.

Workflows

Automations with AI agents

Collections

All your data, searchable

Chat Widget

Drop-in widget for your website

Developer API

Build AI-powered apps with ease

    We use cookies to enhance your experience on Needle and keep your data secure. Privacy Policy