Skip to main content

Droost: SDC Components

droost_sdc_components Read-only

Module: Droost core

The SDC catalog with full prop schemas and slots — what exists to compose WITH, before you scaffold anything new. Detail one component to get its exact prop names, types, enums, and requiredness.

Example call
{
    "tool": "droost_sdc_components",
    "arguments": {
        "component": "droost_tailwind:card"
    }
}
Example response — captured live on this site
{
    "success": true,
    "message": "Component droost_tailwind:card (stable): 6 props (1 required), 2 slots.",
    "data": {
        "id": "droost_tailwind:card",
        "name": "Card",
        "provider": "droost_tailwind",
        "group": "Cards",
        "status": "stable",
        "description": "Content card: optional image, title, badge, body slot, and an actions slot — the workhorse for listings (vehicles, products, teasers).",
        "path": "/var/www/html/web/modules/contrib/droost/themes/droost_tailwind/components/card",
        "props": {
            "attributes": {
                "type": "Drupal\\Core\\Template\\Attribute",
                "title": "Attributes",
                "description": "Wrapper HTML attributes."
            },
            "title": {
                "type": "string",
                "title": "Title",
                "description": "The card heading.",
                "examples": [
                    "2021 Bronco Badlands"
                ]
            },
            "image_url": {
                "type": "string",
                "format": "uri-reference",
                "title": "Image URL",
                "description": "Optional image shown above the card body.",
                "examples": [
                    "/sites/default/files/bronco.jpg"
                ]
            },
            "image_alt": {
                "type": "st
… (truncated — run it yourself for the rest)

Catalog of Single Directory Components (SDC). Without arguments: every discoverable component with provider, status, prop names, and slot names. With "component" (e.g. "droost_examples:example_card"): the full definition — prop JSON schemas, required props, slots, and variants. Use before composing a display or deciding whether to scaffold a new SDC. Read-only.

Input schema (JSON Schema)
{
    "type": "object",
    "properties": {
        "component": {
            "type": "string",
            "description": "A component id (\"module_or_theme:component_name\") for full detail. Omit to list all components."
        },
        "provider": {
            "type": "string",
            "description": "List mode only: restrict to components provided by this module or theme (e.g. \"mercury\", \"droost_examples\")."
        }
    }
}