Skip to main content

Droost: Canvas Components

droost_canvas_components Read-only

Module: Droost Canvas

The placeable-component registry. Tree items reference THESE ids (sdc.droost_tailwind.hero), never raw SDC ids. Detail mode bridges the source SDC's prop schemas — respect every enum and supply every defaulted prop when authoring tree inputs.

Example call
{
    "tool": "droost_canvas_components",
    "arguments": {
        "component": "sdc.droost_tailwind.hero"
    }
}
Example response — captured live on this site
{
    "success": true,
    "message": "Component sdc.droost_tailwind.hero (\"Hero\", enabled): active version 251b984f66815db2 of 1, 1 slots.",
    "data": {
        "id": "sdc.droost_tailwind.hero",
        "label": "Hero",
        "source": "sdc",
        "local_source_id": "droost_tailwind:hero",
        "status": true,
        "active_version": "251b984f66815db2",
        "versions": [
            "251b984f66815db2"
        ],
        "slots": {
            "actions": {
                "title": "Actions",
                "description": "Call-to-action buttons rendered under the subtitle."
            }
        },
        "settings": {
            "prop_field_definitions": {
                "title": {
                    "required": true,
                    "field_type": "string",
                    "field_storage_settings": [],
                    "field_instance_settings": [],
                    "field_widget": "string_textfield",
                    "default_value": [
                        {
                            "value": "Find your next ride"
                        }
                    ],
                    "expression": "ℹ︎string␟value"
                },
                "subtitle": {
                    "required": false,
                    "field_type": "string",
                    "field_storage_settings": [],
                    "field_instance_setti
… (truncated — run it yourself for the rest)

The Canvas placeable-component registry (Component config entities). Without arguments: every placeable component with id, label, source, status, and slot names — tree items reference THESE ids (e.g. "sdc.mercury.cta"), not raw SDC ids. With "component": full detail — slot definitions, active/available versions, and settings (including prop field definitions). Filter with "source" ("sdc", "block", "js") or "enabled_only". Read-only.

Input schema (JSON Schema)
{
    "type": "object",
    "properties": {
        "component": {
            "type": "string",
            "description": "A Canvas Component entity id (e.g. \"sdc.mercury.cta\") for full detail. Omit to list."
        },
        "source": {
            "type": "string",
            "description": "List mode: restrict to a source prefix, e.g. \"sdc\", \"block\", \"js\"."
        },
        "enabled_only": {
            "type": "boolean",
            "description": "List mode: only enabled components (default false — disabled ones are listed with status false)."
        }
    }
}