Skip to main content

get_feedback_patterns

Get feedback patterns for loading states, toasts, empty states, and errors.

Reference

Parameters

  • Name
    category
    Type
    enum · optional
    Description

    Filter by category (loading · toast · empty · error · success · progress)

  • Name
    subcategory
    Type
    string · optional
    Description

    Filter by subcategory (skeleton, spinner, notification, page, inline, determinate)

  • Name
    name
    Type
    string · optional
    Description

    Get specific pattern by name (e.g., "skeleton-card", "toast-error")

  • Name
    context
    Type
    string · optional
    Description

    Describe your use case for AI-powered recommendation

Returns

{
  patterns        Array of matching feedback patterns with templates and guidance
  recommendation  AI-suggested pattern if context provided
  usage           General guidance for each pattern type
}

Description

Get feedback patterns for loading states, toasts, empty states, and errors.

CATEGORIES:

  • loading: Skeletons, spinners, progress indicators
  • toast: Success, error, warning, info notifications
  • empty: Empty states with guidance
  • error: Error states with recovery options
  • success: Success confirmations
  • progress: Progress bars and step indicators

Parameters:

  • category (optional): Filter by category (loading, toast, empty, error, success, progress)
  • subcategory (optional): Filter by subcategory (skeleton, spinner, inline, page)
  • name (optional): Get specific pattern by name (e.g., 'skeleton-card', 'toast-error')
  • context (optional): Describe your use case for AI-powered recommendation

Source

Defined in packages/mcp/src/tools.ts. The request handler lives alongside its registration in packages/mcp/src/tools/.

Was this page helpful?

Last reviewed by @jschuyler