Preview Discord component layout
preview_component_layoutValidate and normalize a bounded Discord Components V2 layout locally, returning deterministic outlines, counts, normalized links, defaults, and safety warnings without contacting Discord.
Instructions
Validate and normalize one bounded Components V2 layout locally. Returns a deterministic outline, recursive counts, aggregate Unicode text length, exact normalized HTTPS link destinations and origins, explicit defaults, mention notification projection, and safety warnings without contacting Discord or persisting content. Supports Text Display, Separator, Container, callback-free link-row nodes, and managed request-row Buttons. A request Button creates only a private bounded broker request after publication and click-time scope checks; local preview grants no origin, ingress, write, or administration authority. Explicit layoutFormat:media adds Section/Thumbnail/Gallery/File nodes, disabled controls and symbolic upload/retain declarations without file I/O; file-only and gallery-only layouts are allowed. Empty authored alt text is rejected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| schemaVersion | Yes |