Skip to main content
Glama
circuitry-dev

Circuitry MCP Server

Official

layout.createSection

Creates HTML sections with proper layout structure in Circuitry Designer mode, ensuring correct stacking and positioning for headers, footers, and content containers.

Instructions

PREFERRED METHOD for creating HTML in Designer mode.

Creates both a layout container AND an HTML component inside it together. This ensures:

  • Proper parent-child structure

  • Correct vertical stacking (content sections stack below each other)

  • Clean preview/export with proper positioning

Use container param for auto-positioning:

  • "header" - positions at top

  • "footer" - positions at bottom

  • "content" - stacks below previous content sections

CRITICAL CSS STRUCTURE - Prevents zoom scaling bugs:

NEVER put visual styles on :host - causes border-radius to scale incorrectly when zooming.

WRONG:

:host { background: #1a1a3e; border-radius: 16px; padding: 20px; }

CORRECT:

:host { display: block; } .card { background: #1a1a3e; border-radius: 16px; padding: 20px; }

Always wrap HTML content in a container div and apply all visual styles (background, border-radius, padding, box-shadow) to that inner element, NOT to :host.

Headers & Footers MUST have opaque backgrounds - content scrolls behind them:

  • Use solid color: background: #1a1a3e;

  • Or gradient: background: linear-gradient(...);

  • Or blur: background: rgba(26,26,62,0.9); backdrop-filter: blur(10px);

Cards narrower than screen should be centered:

  • Use margin: 16px auto; in CSS to center horizontally

  • Or set position.x to center: (screenWidth - cardWidth) / 2

Returns both layoutId and htmlId so you can reference either element later.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesDisplay name for the section (e.g., "Profile Card", "Settings Menu")
layoutTypeNoLayout type: card, container, header, footer, etc.
containerNoSemantic container type - determines auto-positioning: header (top), footer (bottom), content (stacked)
htmlYesHTML content for the section
cssNoCSS styles for the HTML content
jsNoOptional JavaScript for interactivity
positionNoPosition { x, y } - auto-calculated based on container if not provided
dimensionsNoDimensions { width, height } - uses layout type defaults if not provided
screenIdNoTarget screen ID or name (uses selected screen if not specified)
autoAnalyzeNoRun layout.analyze with autoFix after creation (default: false)
Install Server

Other Tools

Latest Blog Posts

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/circuitry-dev/circuitry-mcp-server'

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