find_unused
Identify orphaned files not imported by any other file. Use to clean dead code and reduce codebase size.
Instructions
Find unused files that no other files import.
Purpose: Identify orphaned files that could be safely removed.
Pagination: Default limit of 200 results per page. Check response.pagination.has_more to fetch more pages.
Returns: Object with pagination metadata and flat array of file path strings (no wrapping objects).
Use this when:
Cleaning up dead code
Reducing codebase size
Identifying test-only or entry-point files
Note: Entry points (main.rs, index.ts) will appear as unused but should not be deleted.
Example output: {"pagination": {...}, "results": ["src/unused.rs", "tests/old.rs"]}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of unused files per page (default: 200) | |
| offset | No | Pagination offset (skip first N files). Use with limit for pagination. |