{"at":"2026-11-22T23:56:37.736Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-22T23:56:38.159Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-22T23:56:38.260Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-22T23:56:38.670Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"completions":{},"prompts":{"listChanged":true},"resources":{"listChanged":true},"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"saglitzdesign","version":"0.19.1"}}}}
{"at":"2026-11-22T23:56:38.670Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-22T23:56:38.670Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-22T23:56:38.675Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"List Design Knowledge"},"description":"List the knowledge-base index (design languages, UI components, UX, craft, books, process, marketing, SEO, GEO, patterns). Returns every document grouped by category — each with its id, title, platform, and tags. Use this first to discover what's available and get exact ids; then read one with get_design_doc, or search by need with search_design_knowledge.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"category":{"description":"Filter to one category, e.g. 'component', 'ux', 'marketing'. Omit for all.","enum":["design-language","component","ux","seo","geo","pattern","craft","book","process","marketing"],"type":"string"},"platform":{"description":"Filter to one platform: 'mobile', 'web', or 'macos' (docs marked 'both' are always included). Omit for all.","enum":["mobile","web","macos"],"type":"string"}},"type":"object"},"name":"list_design_knowledge","title":"List Design Knowledge"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Search Design Knowledge"},"description":"Search the whole knowledge base with a natural-language query — UI components, UX, accessibility, typography, color, motion, conversion, copywriting, SEO/GEO, platform design languages, craft standards, distilled design & marketing books, roadmaps, and real-world app/site patterns. Returns the top-matching documents, each with its single most relevant section excerpted and its id. Use for open-ended 'how should I…' questions; if you already know the id use get_design_doc, to browse everything use list_design_knowledge.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"category":{"description":"Restrict to one category","enum":["design-language","component","ux","seo","geo","pattern","craft","book","process","marketing"],"type":"string"},"limit":{"description":"Max results (default 5)","maximum":10,"minimum":1,"type":"integer"},"platform":{"description":"Restrict to one platform","enum":["mobile","web","macos"],"type":"string"},"query":{"description":"What you need guidance on, e.g. 'primary button size mobile', 'pricing page layout', 'dark mode colors', 'llms.txt'","type":"string"}},"required":["query"],"type":"object"},"name":"search_design_knowledge","title":"Search Design Knowledge"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Get Design Doc"},"description":"Fetch one knowledge-base document in full by its id. Returns the whole document — title, metadata, prescriptive body, and cited sources. Ids come from list_design_knowledge or search_design_knowledge; if the id is unknown it suggests near matches.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"id":{"description":"Exact document id, e.g. 'buttons', 'material-3', 'accessibility', 'geo-tactics-checklist'. Get ids from list_design_knowledge or search results.","type":"string"}},"required":["id"],"type":"object"},"name":"get_design_doc","title":"Get Design Doc"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Get Component Guidance"},"description":"Get expert guidance for designing one UI component or screen pattern (button, form, navigation, card, modal, hero, pricing page, onboarding, paywall, checkout, empty state, dashboard…). Returns the most relevant docs in full — specs, states, sizing, anti-patterns, and real-world patterns from top apps/sites. Use when designing a specific element; for copy-paste code use get_component_recipe, for annotated screenshots use get_design_examples.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"component":{"description":"Component or pattern name, e.g. 'primary button', 'signup form', 'bottom tab bar', 'hero section', 'paywall'.","type":"string"},"platform":{"description":"Target platform ('mobile' | 'web' | 'macos') — strongly recommended so guidance matches the platform's conventions.","enum":["mobile","web","macos"],"type":"string"}},"required":["component"],"type":"object"},"name":"get_component_guidance","title":"Get Component Guidance"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Get Design Language"},"description":"Fetch the full reference document for one modern design language or platform design system (Material 3, Apple HIG/Liquid Glass, iOS/Android/macOS, Apple Intelligence, visionOS, Fluent 2, 2026 web trends, design tokens). Returns the complete spec — rules, do/don't lists, numbers, and examples — for the chosen system. Use when you need the authoritative platform baseline before designing; for a specific component use get_component_guidance, and to plan a whole project use get_design_roadmap.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"language":{"description":"Which reference to fetch. e.g. 'material-3' (Android/Material), 'apple-hig-liquid-glass' or 'ios-app-design' (iOS), 'macos-app-design', 'visionos-spatial-design' (Vision Pro), 'web-trends-2026', 'design-tokens-theming'.","enum":["material-3","apple-hig-liquid-glass","ios-app-design","android-app-design","macos-app-design","apple-intelligence-design","visionos-spatial-design","wwdc-design-principles","fluent-2","web-trends-2026","design-tokens-theming"],"type":"string"}},"required":["language"],"type":"object"},"name":"get_design_language","title":"Get Design Language"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Design Review Checklist"},"description":"Generate a structured design-review checklist for a project type (mobile app, website, landing page, dashboard), assembled from the knowledge base: key rules and anti-patterns per area. Use it to audit an existing design or as acceptance criteria for a new one.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"focus":{"description":"Narrow the review to one dimension (default: all)","enum":["all","ui","ux","accessibility","seo","geo","conversion","copywriting"],"type":"string"},"project_type":{"description":"What is being reviewed","enum":["mobile-app","macos-app","website","landing-page","dashboard"],"type":"string"}},"required":["project_type"],"type":"object"},"name":"design_review_checklist","title":"Design Review Checklist"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Get Design Roadmap"},"description":"The SaglitzDesign roadmap: a phased, expert design process for a given project type (website, landing page, iOS app, Android app, macOS app, SaaS web app). Each phase has a goal and the exact knowledge-base docs to consult. Use this FIRST when starting any design project, then fetch phase docs as you reach them.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"project_type":{"description":"What is being designed","enum":["website","landing-page","ios-app","android-app","macos-app","saas-web-app"],"type":"string"}},"required":["project_type"],"type":"object"},"name":"get_design_roadmap","title":"Get Design Roadmap"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Seo Geo Guide"},"description":"SEO and GEO expertise for websites — classic SEO (technical, on-page, design-impact) and GEO, Generative Engine Optimization for AI answer engines (ChatGPT, Perplexity, Google AI Overviews, llms.txt, citations). Returns the full relevant guide docs, optionally narrowed to a topic. Use when planning or auditing a site's discoverability; pair with get_design_roadmap('website') for the full process.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"scope":{"description":"Which discipline: 'seo' (classic search), 'geo' (AI answer engines), or 'both'.","enum":["seo","geo","both"],"type":"string"},"topic":{"description":"Optional narrower topic, e.g. 'core web vitals', 'llms.txt', 'structured data'. Omit to get the full guides.","type":"string"}},"required":["scope"],"type":"object"},"name":"seo_geo_guide","title":"Seo Geo Guide"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Get Design Examples"},"description":"Fetch curated real-world examples of a design pattern from top apps and websites (paywalls, onboarding, auth, navigation, checkout, settings, empty states, heroes, pricing, features, social proof, signup, dashboards, footers). Returns, for each example, the app/site, what it does well, and a source link to view the screenshot. NOTE: this installation does not bundle the screenshot images (they are third-party assets, excluded from the published package), so the notes and links are returned WITHOUT inline images — open the links, or use your own browser tool, if you need to see them.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"limit":{"description":"Max examples to return (default 4; images are large)","maximum":6,"minimum":1,"type":"integer"},"platform":{"description":"'mobile' for iOS app screens, 'web' for website examples","enum":["mobile","web"],"type":"string"},"query":{"description":"Pattern to see examples of, e.g. 'paywall', 'pricing section', 'dark hero', 'empty state'","type":"string"}},"required":["query"],"type":"object"},"name":"get_design_examples","title":"Get Design Examples"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Knowledge Freshness"},"description":"Report how fresh each knowledge document is (age since last verification vs its category's staleness threshold). Use this to decide which docs need re-research; refresh workflow is documented in the repo's /refresh-knowledge command.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"only_stale":{"description":"Return only docs past their staleness threshold (default false)","type":"boolean"}},"type":"object"},"name":"knowledge_freshness","title":"Knowledge Freshness"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Generate Design Tokens"},"description":"Turn a design-token spec (semantic colors + optional spacing/radius/type scales) into REAL, ready-to-use artifact files: CSS custom properties, Tailwind v4 @theme, SwiftUI, Jetpack Compose, and W3C DTCG JSON. Deterministic — outputs code, not advice. Use it to give a project one source of truth across web, iOS and Android. Pair with audit_accessibility to verify the palette's contrast.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"colors":{"additionalProperties":{"type":"string"},"description":"Semantic color roles → hex. e.g. {\"primary\":\"#4F46E5\",\"onPrimary\":\"#FFFFFF\",\"surface\":\"#0A0A0B\",\"textPrimary\":\"#F5F5F5\",\"danger\":\"#EF4444\"}","type":"object"},"fontFamilies":{"additionalProperties":{"type":"string"},"description":"font role→stack (default sans/mono)","type":"object"},"fontSizes":{"additionalProperties":{"type":"number"},"description":"type scale name→px (default xs..4xl)","type":"object"},"format":{"description":"Output format (default 'all')","enum":["css","tailwind","swiftui","compose","dtcg","all"],"type":"string"},"name":{"description":"Token set / brand name (default 'Brand')","type":"string"},"radii":{"additionalProperties":{"type":"number"},"description":"radius name→px (default sm/md/lg/xl/full; use 9999 for pill)","type":"object"},"spacing":{"description":"px spacing scale (default 8pt scale 2..96)","items":{"type":"number"},"type":"array"}},"required":["colors"],"type":"object"},"name":"generate_design_tokens","title":"Generate Design Tokens"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Audit Accessibility"},"description":"Deterministic design-time accessibility checks: WCAG 2.2 color-contrast ratios for text/UI color pairs, and minimum tap/target sizes per platform (iOS 44pt, Android 48dp, web 24px min / 44 recommended). Returns exact ratios, pass/fail, and fixes — the machine-verifiable slice of a11y you can run before code. For keyboard/screen-reader/Dynamic Type checks, see get_design_doc('accessibility').","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"contrast_pairs":{"description":"Color pairs to check for contrast","items":{"additionalProperties":false,"properties":{"background":{"description":"background hex","type":"string"},"foreground":{"description":"text/element hex","type":"string"},"label":{"description":"what this is, e.g. 'body text on surface'","type":"string"},"large_text":{"description":"true if ≥24px or ≥18.66px bold (threshold drops to 3:1)","type":"boolean"},"ui_component":{"description":"true for non-text UI: borders, icons, focus rings (3:1)","type":"boolean"}},"required":["foreground","background"],"type":"object"},"type":"array"},"tap_targets":{"description":"Interactive targets to check for minimum size","items":{"additionalProperties":false,"properties":{"height":{"description":"height in pt/dp/px","type":"number"},"label":{"type":"string"},"platform":{"description":"default web","enum":["ios","android","web"],"type":"string"},"width":{"description":"width in pt/dp/px","type":"number"}},"required":["width","height"],"type":"object"},"type":"array"}},"type":"object"},"name":"audit_accessibility","title":"Audit Accessibility"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Get Component Recipe"},"description":"Get production-ready, accessible reference CODE for a UI component in a chosen stack (react-tailwind, html-css, swiftui, compose) — not advice, actual copy-paste code with all states, ARIA/accessibility, keyboard support and correct motion, grounded in the SaglitzDesign specs. Use when you need to actually build a button, input, modal, toast, card, switch, tabs, empty-state, or list-row. Pair with get_component_guidance (the design rationale) and generate_design_tokens (the theme).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"component":{"description":"Component name, e.g. 'button', 'input', 'modal', 'toast', 'card', 'switch', 'tabs', 'empty-state', 'list-row'","type":"string"},"scales":{"additionalProperties":{"additionalProperties":{"type":"string"},"type":"object"},"description":"Your ramps, keyed by step — {\"neutral\":{\"50\":\"#…\",…,\"950\":\"#…\"},\"primary\":{…},\"danger\":{…}} — exactly the `neutral`, `primary` and `danger` scales generate_color_system returns. Swapped step for step, which is what themes the dark-mode shades too; role tokens alone leave those behind.","type":"object"},"stack":{"description":"Target stack. Omit to get the spec + all available stacks.","enum":["react-tailwind","html-css","swiftui","compose"],"type":"string"},"tokens":{"additionalProperties":{"type":"string"},"description":"Your colours, so the code comes back in them instead of the house palette. Roles: primary, primaryHover, danger, dangerHover, background, textPrimary. Pass the values create_design_system or generate_color_system produced, e.g. {\"primary\":\"#0F62FE\",\"primaryHover\":\"#0043CE\"}. Omit to get the recipe as written.","type":"object"}},"required":["component"],"type":"object"},"name":"get_component_recipe","title":"Get Component Recipe"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Generate Color System"},"description":"Turn ONE brand color into a complete, accessibility-verified palette: a 50–950 tonal scale, a cohesive brand-tinted neutral ramp, and full light + dark semantic tokens (background, surface, border, text, primary/onPrimary, subtle, focus ring). Every text/UI pair is checked against WCAG 2.2 and auto-adjusted to pass. Deterministic — outputs a real palette, not advice. Feed the result into generate_design_tokens, then audit_accessibility.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"brand_color":{"description":"The brand / primary color as hex, e.g. '#4F46E5' or '#e11d48'","type":"string"}},"required":["brand_color"],"type":"object"},"name":"generate_color_system","title":"Generate Color System"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Suggest Font Pairing"},"description":"Recommend production-ready font pairings for a brand/product from an intent or vibe (e.g. 'modern SaaS dashboard', 'luxury editorial', 'bold marketing landing', 'native iOS app', 'developer tool'). Returns matched heading + body (+ mono) with ready-to-paste CSS stacks, weights, source, the reason each pairing works, pairing rules, and a suggested type scale. Deterministic curated recommendations, not generic advice. Pair with generate_design_tokens to emit the fonts as tokens.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"intent":{"description":"The product/brand vibe or use case, e.g. 'trustworthy fintech dashboard', 'playful consumer app', 'minimal portfolio', 'AI developer product'","type":"string"},"limit":{"description":"How many pairings to return (default 3)","maximum":6,"minimum":1,"type":"integer"}},"required":["intent"],"type":"object"},"name":"suggest_font_pairing","title":"Suggest Font Pairing"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Fix Contrast"},"description":"Repair a failing color pair: given a foreground and background hex, compute the NEAREST accessible color (hue & saturation preserved, lightness nudged) that meets the WCAG 2.2 target — not just a pass/fail report. Use when audit_accessibility flags a pair and you need the corrected value to ship. For a full pass/fail audit use audit_accessibility; to build a whole palette use generate_color_system.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"adjust":{"description":"Which color to move (default 'foreground' — the text)","enum":["auto","foreground","background"],"type":"string"},"background":{"description":"Background hex it sits on, e.g. '#FFFFFF'","type":"string"},"foreground":{"description":"Foreground/text hex to adjust, e.g. '#9CA3AF'","type":"string"},"target":{"description":"Target contrast ratio (default 4.5 = AA normal text; use 3 for large text/UI, 7 for AAA)","maximum":21,"minimum":1,"type":"number"}},"required":["foreground","background"],"type":"object"},"name":"fix_contrast","title":"Fix Contrast"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Suggest Icon Library"},"description":"Recommend the right icon library for a product from an intent/vibe/platform (e.g. 'minimal SaaS dashboard', 'friendly consumer app with personality', 'iOS app', 'Android Material app', 'dense admin panel'). Returns matched open-source (or platform-native) icon systems with license, install command, coverage, the reason each fits, usage rules, and universal icon best-practices. Deterministic curated guidance — icons are NOT bundled; install the chosen library in your own project. Pair with suggest_font_pairing and generate_color_system.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"intent":{"description":"Product vibe / platform / use case, e.g. 'clean developer tool', 'premium fintech app', 'iOS native app', 'Material 3 Android app', 'data-dense dashboard'","type":"string"},"limit":{"description":"How many libraries to return (default 3)","maximum":6,"minimum":1,"type":"integer"}},"required":["intent"],"type":"object"},"name":"suggest_icon_library","title":"Suggest Icon Library"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Generate Type Scale"},"description":"Generate a modular typographic scale from a base size and ratio: named steps (xs…6xl) with sizes, line-heights, letter-spacing, and optional fluid clamp() that scales display type down on small screens. Emits CSS custom properties and a Tailwind v4 @theme block. Deterministic real output. Pair with suggest_font_pairing and generate_design_tokens.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"base":{"description":"Base body size in px (default 16)","maximum":24,"minimum":10,"type":"number"},"fluid":{"description":"Emit fluid clamp() for headings (default true)","type":"boolean"},"ratio":{"description":"Modular ratio (default 1.25). Common: 1.2 minor-third, 1.25 major-third, 1.333 perfect-fourth, 1.5, 1.618 golden","maximum":2,"minimum":1.05,"type":"number"},"steps":{"description":"Named steps above base (default 7 → up to 6xl)","maximum":7,"minimum":3,"type":"integer"}},"type":"object"},"name":"generate_type_scale","title":"Generate Type Scale"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Generate Elevation System"},"description":"Generate a cohesive elevation / box-shadow ramp (layered ambient + direct light) with semantic level names (flat…modal), as CSS custom properties and Tailwind @theme, plus dark-mode guidance. Deterministic. Use one shadow token per level instead of hand-tuning shadows per component.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"hue":{"description":"Optional shadow tint as 'H S%' e.g. '220 40%' for a cool cast (default neutral black)","type":"string"},"levels":{"description":"Number of raised levels (default 5)","maximum":8,"minimum":2,"type":"integer"},"strength":{"description":"Opacity multiplier 0.5–1.5 (default 1)","maximum":1.5,"minimum":0.5,"type":"number"}},"type":"object"},"name":"generate_elevation_system","title":"Generate Elevation System"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Generate Motion"},"description":"Generate a motion system: easing tokens (decelerate/accelerate/standard/spring as cubic-beziers), duration tokens, and ready-to-paste keyframe animations (fade-in, slide-up, scale-in, spring-pop, shimmer) in CSS, Framer Motion, or SwiftUI — grounded in the animation-craft rules (ease-out on enter, small distances, never scale(0), honor reduced-motion). Deterministic real code.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"animation":{"description":"Which animation to emit (default all)","enum":["all","fade-in","slide-up","scale-in","spring-pop","shimmer"],"type":"string"},"stack":{"description":"Target stack (default css)","enum":["css","framer-motion","swiftui","all"],"type":"string"}},"type":"object"},"name":"generate_motion","title":"Generate Motion"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Design Lint"},"description":"Lint a snippet of HTML / CSS / JSX / Tailwind for design & accessibility anti-patterns: hardcoded colors instead of tokens, px font-sizes, removed focus outlines, images without alt, clickable divs, icon-only buttons without labels, positive tabindex, ad-hoc radii, !important overuse. Returns findings with line numbers, severity, and fixes. Fast static design-time check — not a replacement for a full audit. Complements design_review_checklist.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"code":{"description":"The HTML/CSS/JSX/Tailwind snippet to lint","type":"string"}},"required":["code"],"type":"object"},"name":"design_lint","title":"Design Lint"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Audit Ux Copy"},"description":"Audit UI / marketing copy objectively: readability (Flesch reading ease + grade level), average sentence length, passive voice, jargon/hype words, filler, user-focus ('you' vs 'we'), and weak CTAs. Returns metrics plus specific flagged phrases and fixes. The machine-checkable slice of UX writing — pair with get_design_doc('ux-writing') for voice/tone judgment.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"text":{"description":"The copy to audit (a headline, paragraph, button label, error message, or full page copy)","type":"string"}},"required":["text"],"type":"object"},"name":"audit_ux_copy","title":"Audit Ux Copy"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Create Design System"},"description":"THE one-call foundation. Turn a brand color + product vibe + platform into a complete, coherent design-system starter: accessibility-verified color (light+dark), a matched font pairing, an icon library, a modular type scale, an elevation ramp, ready-to-paste design tokens (CSS/Tailwind or SwiftUI/Compose), the components to build, and a build checklist — all generated to work together. Use this FIRST when someone says 'design/build me a website/app' to lay the foundation, then get_component_recipe for each component and get_design_roadmap for the full process.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"brand_color":{"description":"Brand / primary color as hex, e.g. '#4F46E5'","type":"string"},"name":{"description":"Brand/token name (default 'Brand')","type":"string"},"platform":{"description":"Target platform (default web) — picks icon set and token output","enum":["web","ios","android","all"],"type":"string"},"vibe":{"description":"Product vibe / use case, e.g. 'modern SaaS dashboard', 'premium fintech app', 'bold marketing site', 'minimal portfolio'","type":"string"}},"required":["brand_color","vibe"],"type":"object"},"name":"create_design_system","title":"Create Design System"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Audit Design System"},"description":"Measure how systematic an existing UI really is: paste CSS / SCSS / Tailwind / JSX source and get a consistency score plus the sprawl behind it — how many distinct colors, font sizes, radii, shadows and spacing values it actually uses, which colors are near-duplicates nobody can tell apart, which spacing is off the 4pt grid, token adoption, stray font families, !important and magic z-index. Returns a consolidation plan wired to the generators. Use it before a redesign, on an inherited codebase, or to prove a design system is (or isn't) being followed. Deterministic static analysis; complements design_lint (per-line anti-patterns) with a whole-codebase view.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"code":{"description":"The stylesheet / token file / component source to audit. Concatenate several files to audit them together.","type":"string"}},"required":["code"],"type":"object"},"name":"audit_design_system","title":"Audit Design System"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Generate Layout System"},"description":"Generate the layout foundation the other generators leave out: breakpoints (with what changes at each), container max-widths, edge padding, a column grid, an intrinsic auto-fit card grid, container queries, and a fluid section-rhythm scale — as CSS custom properties and a Tailwind v4 @theme block, plus the rules that matter more than the numbers (design narrow-first, cap the measure at 45–75ch, prefer intrinsic layout to media queries). Deterministic real code. Pair with generate_type_scale and generate_design_tokens.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"columns":{"description":"Grid columns (default 12, or 4 for mobile-first)","maximum":24,"minimum":2,"type":"integer"},"container_queries":{"description":"Include a container-query example so components respond to their own width (default true)","type":"boolean"},"gutter":{"description":"Gutter between columns in px (default 16–32 by preset)","maximum":64,"minimum":4,"type":"integer"},"max_width":{"description":"Max content width in px (default depends on preset: 960–1440)","maximum":2560,"minimum":480,"type":"integer"},"preset":{"description":"Layout archetype (default 'marketing-site'): 'web-app' for a dense app shell with a sidebar, 'docs' for a three-zone documentation layout, 'mobile-first' for a 4→12 column phone-first grid","enum":["marketing-site","web-app","docs","mobile-first"],"type":"string"}},"type":"object"},"name":"generate_layout_system","title":"Generate Layout System"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Compare Design Languages"},"description":"Compare how iOS (HIG/Liquid Glass), Android (Material 3), macOS and the web each solve ONE design problem — navigation, buttons, modals/sheets, typography, color, elevation, motion, forms, lists, icons, search or settings. Returns a side-by-side table of the concrete conventions per platform, the rules for porting a design between them, and an explicit 'do NOT port' list. Use when building the same product on more than one platform, or when deciding whether a pattern that works on one platform belongs on another.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"platforms":{"description":"Which platforms to include as columns (default all four). e.g. ['ios','android'] for a mobile-only comparison","items":{"enum":["ios","android","macos","web"],"type":"string"},"type":"array"},"topic":{"description":"The surface to compare, e.g. 'navigation', 'buttons', 'modals-sheets', 'motion'","enum":["navigation","buttons","modals-sheets","typography","color","elevation","motion","forms","lists","icons","search","settings"],"type":"string"}},"required":["topic"],"type":"object"},"name":"compare_design_languages","title":"Compare Design Languages"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Measure Screenshot"},"description":"Measure a real screenshot from its actual pixels — the exact palette and how many distinct colours it really uses, true WCAG contrast ratios for the colour pairs on screen, whitespace/density, and structural detections (left-edge alignment, vertical rhythm, off-grid gaps) each carrying a confidence level. Returns a markdown measurement and, on request, a self-contained HTML report you can save, open and share. PNG only. Reads the local file you name; makes no network call. Use it before critiquing a UI so the review cites measured numbers instead of impressions; pair with fix_contrast for failing pairs and audit_design_system for the codebase behind the screen.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"format":{"description":"'markdown' (default) for the measurement text, 'html' for a self-contained report document to save and open, 'both' for each.","enum":["markdown","html","both"],"type":"string"},"max_colors":{"description":"How many palette clusters to list (default 12).","maximum":24,"minimum":4,"type":"integer"},"path":{"description":"Path to a .png screenshot. Absolute paths are strongly preferred — a relative path is resolved against the server's working directory, which is usually not your project folder.","type":"string"},"scale":{"description":"Device pixel ratio of the screenshot (default 1). Pass 2 for a Retina/2× capture so lengths are reported in logical px instead of image px.","maximum":3,"minimum":1,"type":"integer"}},"required":["path"],"type":"object"},"name":"measure_screenshot","title":"Measure Screenshot"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Import Design Tokens"},"description":"Read an EXISTING design system and convert it: paste CSS custom properties (a Tailwind v4 @theme block, a shadcn :root block, plain CSS), a W3C DTCG token file, or a theme object as JSON, and get back the roles it names, the semantic roles it is missing, a WCAG contrast check on the pairs it defines, and the whole set re-emitted as CSS / Tailwind / SwiftUI / Compose / DTCG. The inverse of generate_design_tokens — use it to take a web theme to iOS or Android, to audit an inherited system, or to see what a third-party theme leaves undefined. Only NAMED tokens are read; a bare hex inside a rule carries no role and is never imported as one (use audit_design_system to count those). JavaScript configs are never evaluated.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"format":{"description":"Format to re-emit in (default 'all'). Use 'swiftui' or 'compose' to take a web theme to native.","enum":["css","tailwind","swiftui","compose","dtcg","all"],"type":"string"},"name":{"description":"Token set / brand name for the emitted artifacts (default 'Imported')","type":"string"},"source":{"description":"The token source: CSS custom properties, DTCG JSON, or a theme object as JSON. The format is detected automatically.","type":"string"}},"required":["source"],"type":"object"},"name":"import_design_tokens","title":"Import Design Tokens"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Audit Project"},"description":"Audit a real codebase instead of a pasted snippet: point it at a directory and it walks the design source, runs the design/accessibility lint over every file, and scores the whole thing for consistency — how many distinct colours, type sizes, radii, shadows and spacings the project actually uses, and which colours are indistinguishable duplicates. Returns findings ranked worst-file-first with file:line, plus an explicit list of what it did not look at. Cross-file drift is the thing a single-file lint cannot see, which is the point of this tool. Reads only the directory you name; makes no network call. Pair with measure_screenshot for the rendered result and audit_ux_copy for the words.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"extensions":{"description":"Override which file extensions are scanned, e.g. ['.tsx','.css','.js']. Defaults to CSS/SCSS/HTML/JSX/TSX/Vue/Svelte/Astro; .js and .ts are excluded by default because most are logic, not UI.","items":{"type":"string"},"type":"array"},"path":{"description":"Directory to audit. Absolute paths are strongly preferred — a relative path is resolved against the server's working directory, which is usually not your project folder.","type":"string"}},"required":["path"],"type":"object"},"name":"audit_project","title":"Audit Project"}]}}}
