search_functions
Search existing functions across the codebase to prevent duplication before writing new code, ensuring you reuse implementations instead of recreating them.
Instructions
Check if functionality already exists BEFORE writing any new function, utility, or helper.
CALL THIS WHEN: • You're about to create a new function — search first to prevent duplicates • You need to find where a concept is implemented (e.g., 'notify', 'validate', 'parse') • You're looking for the right function to import instead of reimplementing • A task says 'add X functionality' — verify X doesn't already exist
RETURNS: Matching functions with file paths, line numbers, module, export status, async flag, complexity scores, and full signatures. Searches all functions across the entire codebase.
EXAMPLES: • "Is there already a function that sends Slack notifications?" • "What validation utilities exist?" • "Where is email formatting handled?" • "Does a retry wrapper already exist somewhere?"
WHY NOT JUST READ FILES: grep only finds exact string matches and misses re-exports, aliases, and barrel-file indirection. This searches the full resolved dependency graph — if it exists anywhere in the codebase, this finds it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||