xcresult_get_ui_element
Get detailed properties of specific UI elements by index
How to use it
xcresult_get_ui_element is exposed by the XcodeMCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the xcresult_get_ui_element tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install XcodeMCP
npx -y xcodemcp@latestOther tools in XcodeMCP (22)
→ find-xcresults
→ build
→ build-and-run
Clean build artifacts
Start debugging session
List projects in workspace
List simulators and devices
List available schemes
Get workspace status and details
→ health-check
Open files with optional line number
Open projects and workspaces
Switch active scheme
Stop current operation
→ test
→ xcresult-browse
Get console output for specific tests
Export specific attachments from test results
Extract screenshots from test failures
Get UI hierarchy as AI-readable JSON with timestamp selection
List all attachments for a test
Quick overview of test results