Skip to content

Edit Component

Edit an owned UI component. Code, framework, theme, or background changes automatically queue both screenshots again. Existing clients may continue using the edit_element alias.

TOOLedit_component
{
  "mcpServers": {
    "frontendforever": {
      "command": "npx",
      "args": [
        "-y",
        "frontendforever-mcp"
      ],
      "env": {
        "MCP_API_KEY": "<your_api_key>"
      }
    }
  }
}

Authorization

X-API-Keystringheaderrequired

Parameters

idrequired
string
Component UUID
title
string
New title
description
string
New description
html
string
HTML code
css
string
CSS code
js
string
JavaScript code
htmlTailwind
string
Tailwind HTML code
reactTailwind
string
React/Tailwind code
category
string
Category slug
tags
array
Array of tag names
framework
string
Framework identifier
defaultTheme
string
light or dark
backgroundColorLight
string
Light screenshot background
backgroundColorDark
string
Dark screenshot background
isPrivate
boolean
Private visibility
changeSummary
string
Version-history summary
Request Preview
cURL
curl --request PATCH \
  --url 'https://frontendforever.com/api/mcp/components/%3Cid%3E' \
  --header 'X-API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "Updated title"
}'

Example responses

Component saved: Animated Gradient Button
ID: <uuid>
Screenshot status: queued