find_islands
Identify disconnected components in the static import graph, grouping files that have no imports crossing group boundaries. Useful for detecting independent modules or clusters.
Instructions
Find disconnected components (islands) in the static import graph — groups of files that have no imports crossing group boundaries. Prefer this over manual Glob + Grep cluster analysis — Reflex computes the connected components directly. Returns {pagination, results: [{island_id, size, paths: [...]}]} sorted with largest islands first by default. Default page size 200; if pagination.has_more is true, fetch the next page with offset. Use min_island_size and max_island_size to filter by component size (default: 2–500 files, or 50% of total). Only static imports are considered. On "Index not found" / "stale" error, call index_project, then retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort order: 'asc' (smallest islands first) or 'desc' (largest islands first, default) | |
| limit | No | Maximum number of islands per page (default: 200) | |
| offset | No | Pagination offset (skip first N islands). Use with limit for pagination. | |
| max_island_size | No | Maximum files in an island to include (default: 500 or 50% of total files) | |
| min_island_size | No | Minimum files in an island to include (default: 2) |