Skip to content
Tools/Spec Introspection/get_type_label

get_type_label

Return one `UPGTypeLabel` by entity type, plus a resolved display label for an optional `framework_id` and/or `designation` (wraps `resolveLabel`). Lookup is exact-match against `UPG_TYPE_LABELS_MAP`.

Spec Introspectionatomic (read-only)

Arguments

entity_typestringrequired

Canonical entity type id.

framework_idstringoptional

Optional framework id (e.g. "lean_canvas", "ost", "design_thinking"). When set, resolved_label uses the framework-specific label.

designationstringoptional

Optional designation key (e.g. "pain", "gap", "desire") for types that use the designation pattern.

Returns

Shape
{...UPGTypeLabel, resolved_label: string }

Examples

Live call against the Notion example graph.

Input

{
  "entity_type": "person"
}

Output

{
  "id": "person",
  "canonical_label": "Person",
  "alt_labels": [],
  "framework_labels": {},
  "resolved_label": "Person"
}

See Also