For the complete documentation index, see llms.txt. This page is also available as Markdown.

AI

Make component properties understandable to AI-assisted editing.

The ai key attaches metadata to a property that describes it to RapidWeaver Elements' AI-assisted editing. A well-described property lets the AI find and change the right setting when a user asks for something in plain language ("make the background a gradient", "align the label to the left").

The ai object sits alongside the control on a property, at the same level as title and id:

{
  "title": "Alignment",
  "id": "align",
  "segmented": {
    "default": "center",
    "items": [
      { "value": "start", "icon": "arrow.left.to.line" },
      { "value": "center", "icon": "arrow.right.and.line.vertical.and.arrow.left" },
      { "value": "end", "icon": "arrow.right.to.line" }
    ]
  },
  "ai": {
    "name": "align",
    "description": "Label alignment within the button.",
    "values": ["start", "center", "end"]
  }
}

Supported Options

Key
Type
Notes

name

string

A short, stable name the AI uses to identify the property.

description

string

What the property does, in plain language. Include the expected range or format where useful, e.g. "Background color opacity, 0-100."

values

array

Optional list of allowed values, useful when the control's items don't make the valid options obvious.

visible

string

Optional condition expression (same syntax as visible) telling the AI when this property is relevant.

exclude

boolean

Set to true to hide the property from AI-assisted editing entirely.

Describing conditional properties

When a property only applies in certain configurations, mirror the relevant condition in ai.visible so the AI knows when the setting takes effect:

Excluding properties

Use exclude for internal or duplicate properties that the AI shouldn't touch:

Last updated

Was this helpful?