Droost: Display Get
droost_display_get Read-only
Module: Droost DisplayReads a composed display back in the same vocabulary droost_display_compose writes — the verify step after composing, and the template to copy when repeating a pattern on a new bundle.
Example call
{
"tool": "droost_display_get",
"arguments": {
"bundle": "tool",
"view_mode": "teaser"
}
}
Example response — captured live on this site
{
"success": true,
"message": "Display node.tool.teaser: 4 placed components (1 SDC-bound), 10 hidden fields.",
"data": {
"display": {
"id": "node.tool.teaser",
"entity_type": "node",
"bundle": "tool",
"view_mode": "teaser",
"persisted": true,
"status": true
},
"components": {
"created": {
"field": "created",
"formatter": "timestamp",
"label": "hidden",
"weight": 0,
"region": "content",
"component": null,
"settings": {
"date_format": "medium",
"custom_date_format": "",
"timezone": "",
"tooltip": {
"date_format": "long",
"custom_date_format": ""
},
"time_diff": {
"enabled": false,
"future_format": "@interval hence",
"past_format": "@interval ago",
"granularity": 2,
"refresh": 60
}
}
},
"field_tool_label": {
"field": "field_tool_label",
"formatter": "ui_patterns_component_per_ite
… (truncated — run it yourself for the rest)
Reads an entity view display (Manage Display) as an abstract component mapping: each visible field with its formatter, weight, label position, and — for SDC/UI Patterns component formatters — the bound component with its prop and slot sources. Includes the bundle's viewable fields and hidden fields. The output model matches what droost_display_compose accepts. Read-only.
Input schema (JSON Schema)
{
"type": "object",
"properties": {
"entity_type": {
"type": "string",
"description": "Entity type id (default \"node\")."
},
"bundle": {
"type": "string",
"description": "Bundle machine name, e.g. \"event\"."
},
"view_mode": {
"type": "string",
"description": "View mode machine name (default \"default\")."
}
},
"required": [
"bundle"
]
}
Droost