swift_get_declaration_context
Get fully-qualified symbol paths
How to use it
swift_get_declaration_context is exposed by the Swiftlens MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the swift_get_declaration_context 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
Extract import statements
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