swift_get_file_imports
Extract import statements
How to use it
swift_get_file_imports is exposed by the Swiftlens MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the swift_get_file_imports tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
FULL SWIFTLENS LISTINGOther tools in Swiftlens (14)
Get help for any tool
Analyze structure and symbols in a Swift file
Batch analyze multiple files
Build index store db of current project for sourcekit-lsp
Verify Swift development setup
Find all references to a symbol
Get fully-qualified symbol paths
Get type info and documentation
Jump to symbol definition
Extract top-level type declarations
Replace function/type body
Search with regex patterns
Get symbol counts and file summary
Validate syntax and types with swiftc