Skip to main content
Glama

21st.dev Magic AI Agent

by zackbissell

21st_magic_component_refiner

Redesign and improve React UI components by refining styling, layout, or responsiveness based on user input. Returns updated components and implementation instructions for precise enhancements.

Instructions

"Use this tool when the user requests to re-design/refine/improve current UI component with /ui or /21 commands, or when context is about improving, or refining UI for a React component or molecule (NOT for big pages). This tool improves UI of components and returns redesigned version of the component and instructions on how to implement it."

Input Schema

NameRequiredDescriptionDefault
absolutePathToRefiningFileYesAbsolute path to the file that needs to be refined
contextYesExtract the specific UI elements and aspects that need improvement based on user messages, code, and conversation history. Identify exactly which components (buttons, forms, modals, etc.) the user is referring to and what aspects (styling, layout, responsiveness, etc.) they want to enhance. Do not include generic improvements - focus only on what the user explicitly mentions or what can be reasonably inferred from the available context. If nothing specific is mentioned or you cannot determine what needs improvement, return an empty string.
userMessageYesFull user's message about UI refinement

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "absolutePathToRefiningFile": { "description": "Absolute path to the file that needs to be refined", "type": "string" }, "context": { "description": "Extract the specific UI elements and aspects that need improvement based on user messages, code, and conversation history. Identify exactly which components (buttons, forms, modals, etc.) the user is referring to and what aspects (styling, layout, responsiveness, etc.) they want to enhance. Do not include generic improvements - focus only on what the user explicitly mentions or what can be reasonably inferred from the available context. If nothing specific is mentioned or you cannot determine what needs improvement, return an empty string.", "type": "string" }, "userMessage": { "description": "Full user's message about UI refinement", "type": "string" } }, "required": [ "userMessage", "absolutePathToRefiningFile", "context" ], "type": "object" }
Install Server

Other Tools from 21st.dev Magic AI Agent

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/zackbissell/magic-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server