AiDD MCP Server

search_files

Search for files and directories matching a pattern. The search is recursive and case-insensitive. Only searches within the allowed directory. Returns paths relative to the allowed directory. Searches in file and directory names, not content. For searching within file contents, use the tree_sitter_map tool which can locate specific code elements like functions and classes. Example: pattern='.py' finds all Python files, pattern='test' finds all items with 'test' in the name.

Input Schema

NameRequiredDescriptionDefault
include_hiddenNoWhether to include hidden files and directories (defaults to false)
pathNoStarting directory for the search (defaults to allowed directory)
patternYesPattern to search for in file and directory names

Input Schema (JSON Schema)

{ "properties": { "include_hidden": { "description": "Whether to include hidden files and directories (defaults to false)", "type": "boolean" }, "path": { "description": "Starting directory for the search (defaults to allowed directory)", "type": "string" }, "pattern": { "description": "Pattern to search for in file and directory names", "type": "string" } }, "required": [ "pattern" ], "type": "object" }