DocsAI & MCP
Tools reference
Every tool the SwipeUI MCP server exposes, what it takes and what it returns.
The server is read-only. Tools that look at your project read files; none of them write. Agents install items with the CLI command a tool returns.
Finding items
| Tool | Input | Returns |
|---|---|---|
search_components | query (the job, in words); optional category, tier (free or pro), kind (component, block or theme) | Matching items with their name, title, description, category, tier, docs URL and install command |
list_components | Optional category, family, tier, kind | Items grouped by category, one line each |
get_component | name | When to use it and when not to, usage, props, accessibility, motion, layout and performance notes, notes for AI, related items and the install command. Free items include their files; Pro items include files only with a licence key |
get_install_command | names (a list) | One npx @swipeui/cli add … command for all of them, with notes such as "needs a development build" |
Theme and design
| Tool | Input | Returns |
|---|---|---|
list_themes | none | The presets in the registry, with their look, schemes, feel and the theme add command |
get_theme | none | Your project's base preset, extra presets and the ThemeProvider props it found |
get_tokens | none | The tokens defined in your theme file, or a hint to run init |
get_profile | none | Your DESIGN.md and .swipeui/profile.json, or a hint to create them with the design skill |
get_skill | Optional file | One file from the design skill, such as the motion or accessibility reference |
Checking work
| Tool | Input | Returns |
|---|---|---|
audit_screen | path | Problems in a screen file, each with its line and a fix: raw colours, spacing or radii off the scale, missing safe areas, small touch targets, unlabelled icon buttons, and hard-coded springs or durations |
A typical session
search_componentswith the job, for example "bottom navigation with a centre action".get_componenton the best two or three results. Their "when not to use" notes often name a better fit.get_install_commandfor the chosen items, then the agent runs it.audit_screenon the edited screen, and the agent fixes what it finds.