CapabilitiesKit lets your agent bridge the gap between your app and a user's personal information. Instead of spending hours wiring up different Apple frameworks and managing complex permission flows, your agent uses this package to provide instant access to calendars, contacts, location, maps, reminders, and weather.
CapabilitiesKit takes care of that work for you. It gives your app's AI agent ready-to-use tools to access and work with user data, along with built-in permission handling and SwiftUI views to display the results. The package also includes instructions for your coding agent to help you integrate and customize it for your app.
Features
- Give your agent tools to call. Provide your model with a suite of tools that return structured, easy-to-process data for calendars, contacts, and more. The package includes 25 tools for iPhone and 26 for Mac.
- Simplify permission handling. Use ready-made SwiftUI views to show access status and help users manage permissions. Your app stays in control of when to request access, with setup instructions for the required permissions and capabilities.
- Show data with ready-made SwiftUI views. Let your agent display weather, events, or locations using optimized cards and detail views designed for iPhone Duo, including layouts for folded and unfolded displays.
- Preview without network or permissions. Use sample data to build and check your assistant's UI in Xcode previews without needing an active connection or specific user permissions.
FAQs
Can I use my own AI model to analyze user data?
Yes. You can connect CapabilitiesKit's tools to your own AI model and control which tools can read or modify data.
CapabilitiesKit itself doesn't send user data to external AI services. However, be careful when sharing user data with external AI services or other third-party services. Make sure users understand what data is being shared, with whom, and why, and get their consent before sharing it.