generate_component
Generate a reusable UI component with AI. Provide a prompt describing the component to receive a URL that opens LayoutPilot in component mode, ready to produce code automatically.
Instructions
Generate a single UI component using LayoutPilot AI. Returns a URL that opens LayoutPilot in component mode with your prompt ready to generate reusable component code.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "generate_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Description of the component to generate (e.g., 'Animated pricing card with hover effects') | |
| auto_submit | No | Whether to automatically start generating when the URL is opened. Defaults to true. |