get_xcode_projects
Searches for .xcodeproj and .xcworkspace files in specified paths using Spotlight indexing, optionally prioritizing recently opened projects and filtering by regex.
Instructions
Search for .xcodeproj and .xcworkspace files, optionally including recent projects.
If search_path is empty, searches all paths to which this tool has been granted access.
Uses mdfind (Spotlight indexing) to find files efficiently.
Args: search_path: Path to search. If empty, searches all allowed folders. include_recents: If True, include recently opened projects first (default: True) max_search_depth: Maximum directory depth from search path (default: 3) Depth 0 = directly in search path, depth 1 = one level down, etc. regex_filter: Optional regex pattern to filter results max_results: Maximum number of results to return (default: 10)
Returns: A newline-separated list of .xcodeproj and .xcworkspace paths. Recent projects appear first if include_recents=True. Returns empty string if none are found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search_path | No | ||
| include_recents | No | ||
| max_search_depth | No | ||
| regex_filter | No | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |