Craft UI Component with Tactile Physics
ink_craft_componentSynthesize tactile UI components (heroes, glass cards, buttons) with semantic HTML5, CSS logical properties, and spring micro-interactions. Returns markup, styles, and JS.
Instructions
PURPOSE: Synthesize bespoke, tactile UI components (hero sections, glass cards, tactile buttons, navigation bars, metrics grids, modal dialogs) with semantic HTML5, modern CSS logical properties, and spring micro-interaction physics.
BEHAVIOR: Generates component markup, stylesheets, and lifecycle JavaScript strings purely in-memory. Does not mutate the filesystem, write to disk, or initiate network connections. Enforces keyboard accessibility (ARIA dialog, roving tabindex, escape dismiss) and bidi RTL/LTR compliance.
USAGE GUIDELINES:
When to use: Use when creating individual, high-craft UI components and interactive widgets that need to be embedded in an existing layout.
When NOT to use: Do NOT use to scaffold an entire web application project (use ink_create_base instead), nor for 3D WebGL scenes (use ink_build_threejs_experience instead), nor for non-visual state stores (use ink_generate_script_logic instead).
Alternatives: Use ink_create_base for full application scaffolding; use ink_build_threejs_experience for 3D canvas experiences.
RETURNS: ResultEnvelope containing semantic 'html' markup, scoped 'css' rules using logical properties and OKLCH tokens, tactile 'js' interaction logic, and accessibility notes.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ink_craft_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Primary headline or action label of the component | Craft Architecture |
| direction | No | Writing direction; 'auto' enforces CSS logical properties (margin-inline, inset-inline) | auto |
| description | No | Subheading or explanatory body copy | Engineered with optical precision |
| componentType | No | Type of bespoke UI component to synthesize | hero-section |
| interactivePhysics | No | When true, attaches mouse spring drag, ripple physics, and keyboard navigation handlers |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Domain-specific typed payload returned by the tool | |
| status | Yes | Execution outcome status | |
| summary | Yes | Concise, human-readable executive summary of the tool outcome | |
| evidence | No | Audit trail, source references, and generated artifact locations | |
| warnings | Yes | Operational cautions, craft advice, or non-blocking warnings | |
| nextActions | No | Actionable sequential recommendations or subsequent tool suggestions |