[User] Provide a JSON object that satisfies the schema "bitrise-step". Here are the required top‑level fields: none (all optional). Return only the valid JSON object.

Provide a JSON object that satisfies the schema "bitrise-step". Here are the required top‑level fields: none (all optional). Return only the valid JSON object.


[User] Provide a JSON object that satisfies the schema "bitrise". Here are the required top‑level fields: none (all optional). Return only the valid JSON object.

Provide a JSON object that satisfies the schema "bitrise". Here are the required top‑level fields: none (all optional). Return only the valid JSON object.


[System]
You are a helpful assistant that answers strictly in JSON. Here's the JSON schema you must adhere to:
<schema>
{"$schema":"http://json-schema.org/draft-07/schema#","definitions":{"BlockMetadataRepository":{"anyOf":[{"properties":{"directory":{"type":"string"},"type":{"type":"string"},"url":{"type":"string"}},"required":["type","url"],"type":"object"},{"type":"string"}]},"JsonObject":{"additionalProperties":{"$ref":"#/definitions/JsonValue"},"type":"object"},"JsonValue":{"anyOf":[{"items":{"$ref":"#/definitions/JsonValue"},"type":"array"},{"$ref":"#/definitions/JsonObject"},{"type":["string","number","boolean"]}]}},"properties":{"author":{"description":"The name of the author of the block","type":"string"},"blockType":{"description":"The type of block this is (e.g. custom element, React)","properties":{"entryPoint":{"enum":["custom-element","html","react"],"type":"string"},"tagName":{"type":"string"}},"required":["entryPoint"],"type":"object"},"commit":{"description":"The commit hash of the source this block was built from. If specified, 'repository' must also be specified.","type":"string"},"description":{"description":"A short description of the block, to help users understand its capabilities","type":"string"},"devReloadEndpoint":{"description":"URL of a web socket that reports updates in locally developed blocks. To be used by EAs to auto reload.","type":"string"},"displayName":{"description":"The display name used for a block","type":"string"},"examples":{"description":"A list of examples property objects which comply with the block's schema, for demonstration purposes","items":{"$ref":"#/definitions/JsonObject"},"type":"array"},"externals":{"$ref":"#/definitions/JsonObject","description":"The dependencies a block relies on but expects the embedding application to provide, e.g. { \"react\": \"^18.0.0\" }"},"icon":{"description":"An icon for the block, to be displayed when the user is selecting from available blocks (as well as elsewhere as appropriate, e.g. in a website listing the block).","type":"string"},"image":{"description":"A preview image of the block for users to see it in action before using it. This would ideally have a 3:2 width:height ratio and be a minimum of 900x1170px.","type":"string"},"license":{"description":"The license the block is made available under (e.g. MIT).","type":"string"},"name":{"description":"A unique, slugified name for the block.","type":"string"},"protocol":{"description":"The applicable block protocol version, e.g. 0.3","type":"string"},"repository":{"$ref":"#/definitions/BlockMetadataRepository","description":"Specify the place where your block's code lives. This is helpful for people who want to explore the source, or contribute to your block's development."},"schema":{"description":"The versioned URL to the block's schema, e.g. https://blockprotocol.org/@blockprotocol/types/entity-type/thing/v/2","type":"string"},"source":{"description":"The path or URL to the entrypoint source file (e.g. index.html, index.js).","type":"string"},"variants":{"description":"A list which represents different variants of the block that the user can create.","items":{"properties":{"description":{"type":"string"},"examples":{"items":{"$ref":"#/definitions/JsonObject"},"type":"array"},"icon":{"type":"string"},"name":{"type":"string"},"properties":{"$ref":"#/definitions/JsonObject"}},"required":["name","properties"],"type":"object"},"type":"array"},"version":{"description":"The version of the block, which should use semantic versioning (@see https://semver.org/).","type":"string"}},"required":["blockType","name","protocol","schema","source","version"],"type":"object"}
</schema>

[User] Provide a JSON object that satisfies the schema "block-metadata". Here are the required top‑level fields: blockType, name, protocol, schema, source, version. Return only the valid JSON object.

The name of the author of the block

The type of block this is (e.g. custom element, React)

The commit hash of the source this block was built from. If specified, 'repository' must also be specified.

A short description of the block, to help users understand its capabilities

URL of a web socket that reports updates in locally developed blocks. To be used by EAs to auto reload.

The display name used for a block

A list of examples property objects which comply with the block's schema, for demonstration purposes

The dependencies a block relies on but expects the embedding application to provide, e.g. { "react": "^18.0.0" }

An icon for the block, to be displayed when the user is selecting from available blocks (as well as elsewhere as appropriate, e.g. in a website listing the block).

A preview image of the block for users to see it in action before using it. This would ideally have a 3:2 width:height ratio and be a minimum of 900x1170px.

The license the block is made available under (e.g. MIT).

A unique, slugified name for the block.

The applicable block protocol version, e.g. 0.3

Specify the place where your block's code lives. This is helpful for people who want to explore the source, or contribute to your block's development.

The versioned URL to the block's schema, e.g. https://blockprotocol.org/@blockprotocol/types/entity-type/thing/v/2

The path or URL to the entrypoint source file (e.g. index.html, index.js).

A list which represents different variants of the block that the user can create.

The version of the block, which should use semantic versioning (@see https://semver.org/).

blockType name protocol schema source version

Provide a JSON object that satisfies the schema "block-metadata". Here are the required top‑level fields: blockType, name, protocol, schema, source, version. Return only the valid JSON object.


[System]
You are a helpful assistant that answers strictly in JSON. Here's the JSON schema you must adhere to:
<schema>
{"title":"JSON schema for WordPress blocks","$schema":"http://json-schema.org/draft-07/schema#","definitions":{"//":{"reference":"https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/","attributesReference":"https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/","contextReference":"https://developer.wordpress.org/block-editor/reference-guides/block-api/block-context/","supportsReference":"https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/","registerReference":"https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/#example-optional"}},"type":"object","properties":{"$schema":{"type":"string"},"apiVersion":{"description":"The version of the Block API used by the block. The most recent version is 3 and it was introduced in WordPress 6.3.\n\n See the API versions documentation at https://developer.wordpress.org/block-editor/reference-guides/block-api/block-api-versions/ for more details.","type":"integer","enum":[1,2,3],"default":1},"name":{"description":"The name for a block is a unique string that identifies a block. Names have to be structured as `namespace/block-name`, where namespace is the name of your plugin or theme.","type":"string","pattern":"^[a-z][a-z0-9-]*/[a-z][a-z0-9-]*$"},"__experimental":{"description":"The name of the experiment this block is a part of, or boolean true if there is no specific experiment name.","anyOf":[{"type":"string"},{"type":"boolean"}]},"title":{"description":"This is the display title for your block, which can be translated with our translation functions. The block inserter will show this name.","type":"string"},"category":{"description":"Blocks are grouped into categories to help users browse and discover them.\n Core provided categories are: text, media, design, widgets, theme, embed\n\nPlugins and Themes can also register custom block categories.\n\nhttps://developer.wordpress.org/block-editor/reference-guides/filters/block-filters/#managing-block-categories","anyOf":[{"type":"string"},{"type":"string","enum":["text","media","design","widgets","theme","embed"]}]},"parent":{"description":"Setting parent lets a block require that it is only available when nested within the specified blocks. For example, you might want to allow an \u2018Add to Cart\u2019 block to only be available within a \u2018Product\u2019 block.","type":"array","items":{"type":"string"}},"ancestor":{"description":"The `ancestor` property makes a block available inside the specified block types at any position of the ancestor block subtree. That allows, for example, to place a \u2018Comment Content\u2019 block inside a \u2018Column\u2019 block, as long as \u2018Column\u2019 is somewhere within a \u2018Comment Template\u2019 block.","type":"array","items":{"type":"string"}},"allowedBlocks":{"description":"The `allowedBlocks` property specifies that only the listed block types can be the children of this block. For example, a \u2018List\u2019 block allows only \u2018List Item\u2019 blocks as direct children.","type":"array","items":{"type":"string"}},"icon":{"description":"An icon property should be specified to make it easier to identify a block. These can be any of WordPress\u2019 Dashicons (slug serving also as a fallback in non-js contexts).","type":"string"},"description":{"description":"This is a short description for your block, which can be translated with our translation functions. This will be shown in the block inspector.","type":"string"},"keywords":{"description":"Sometimes a block could have aliases that help users discover it while searching. For example, an image block could also want to be discovered by photo. You can do so by providing an array of unlimited terms (which are translated).","type":"array","items":{"type":"string"}},"version":{"description":"The current version number of the block, such as 1.0 or 1.0.3. It\u2019s similar to how plugins are versioned. This field might be used with block assets to control cache invalidation, and when the block author omits it, then the installed version of WordPress is used instead.","type":"string"},"textdomain":{"description":"The gettext text domain of the plugin/block. More information can be found in the Text Domain section of the How to Internationalize your Plugin page.\n\nhttps://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/","type":"string"},"attributes":{"description":"Attributes provide the structured data needs of a block. They can exist in different forms when they are serialized, but they are declared together under a common interface.\n\nSee the attributes documentation at https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/ for more details.","type":"object","patternProperties":{"[a-zA-Z]":{"type":"object","properties":{"type":{"description":"The type indicates the type of data that is stored by the attribute. It does not indicate where the data is stored, which is defined by the source field.\n\nA type is required, unless an enum is provided. A type can be used with an enum.\n\nNote that the validity of an object is determined by your source. For an example, see the query details below.","oneOf":[{"type":"string","enum":["null","boolean","object","array","string","rich-text","integer","number"]},{"type":"array","uniqueItems":true,"items":{"type":"string","enum":["null","boolean","object","array","string","integer","number"]}}]},"enum":{"description":"An attribute can be defined as one of a fixed set of values. This is specified by an enum, which contains an array of allowed values:","type":"array","items":{"oneOf":[{"type":"boolean"},{"type":"number"},{"type":"string"}]}},"source":{"description":"Attribute sources are used to define how the attribute values are extracted from saved post content. They provide a mechanism to map from the saved markup to a JavaScript representation of a block.","type":"string","enum":["attribute","text","rich-text","html","raw","query","meta"]},"selector":{"description":"The selector can be an HTML tag, or anything queryable with querySelector, such as a class or id attribute. Examples are given below.\n\nFor example, a selector of img will match an img element, and img.class will match an img element that has a class of class.","type":"string"},"attribute":{"description":"Use an attribute source to extract the value from an attribute in the markup. The attribute is specified by the attribute field, which must be supplied.\n\nExample: Extract the src attribute from an image found in the block\u2019s markup.","type":"string"},"query":{"description":"Use query to extract an array of values from markup. Entries of the array are determined by the selector argument, where each matched element within the block will have an entry structured corresponding to the second argument, an object of attribute sources.","type":"object"},"meta":{"description":"Although attributes may be obtained from a post\u2019s meta, meta attribute sources are considered deprecated; EntityProvider and related hook APIs should be used instead, as shown in the Create Meta Block how-to here:\n\nhttps://developer.wordpress.org/block-editor/how-to-guides/metabox/#step-2-add-meta-block","type":"string"},"role":{"description":"Designates the conceptual type of the attribute.\n\nThe `content` value marks the attribute as user-editable content, and the `local` value marks the attribute as temporary and non-persistable.","type":"string","enum":["content","local"]},"default":{"description":"A block attribute can contain a default value, which will be used if the type and source do not match anything within the block content.\n\nThe value is provided by the default field, and the value should match the expected format of the attribute."}},"anyOf":[{"required":["type"]},{"required":["enum"]}]}},"additionalProperties":false},"providesContext":{"description":"Context provided for available access by descendants of blocks of this type, in the form of an object which maps a context name to one of the block\u2019s own attribute.\n\nSee the block context documentation at https://developer.wordpress.org/block-editor/reference-guides/block-api/block-context/ for more details.","type":"object","patternProperties":{"[a-zA-Z]":{"type":"string"}}},"usesContext":{"description":"Array of the names of context values to inherit from an ancestor provider.\n\nSee the block context documentation at https://developer.wordpress.org/block-editor/reference-guides/block-api/block-context/ for more details.","type":"array","items":{"type":"string"}},"supports":{"description":"It contains as set of options to control features used in the editor. See the supports documentation at https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/ for more details.","type":"object","properties":{"anchor":{"description":"Anchors let you link directly to a specific block on a page. This property adds a field to define an id for the block and a button to copy the direct link.","type":"boolean","default":false},"align":{"description":"This property adds block controls which allow to change block\u2019s alignment.","oneOf":[{"type":"boolean"},{"type":"array","items":{"type":"string","enum":["wide","full","left","center","right"]}}],"default":false},"alignWide":{"description":"This property allows to enable wide alignment for your theme. To disable this behavior for a single block, set this flag to false.","type":"boolean","default":true},"ariaLabel":{"description":"ARIA-labels let you define an accessible label for elements. This property allows enabling the definition of an aria-label for the block, without exposing a UI field.","type":"boolean","default":false},"className":{"description":"By default, the class .wp-block-your-block-name is added to the root element of your saved markup. This helps having a consistent mechanism for styling blocks that themes and plugins can rely on. If, for whatever reason, a class is not desired on the markup, this functionality can be disabled.","type":"boolean","default":true},"color":{"description":"This value signals that a block supports some of the properties related to color. When it does, the block editor will show UI controls for the user to set their values.\n\nNote that the background and text keys have a default value of true, so if the color property is present they\u2019ll also be considered enabled","type":"object","properties":{"background":{"description":"This property adds UI controls which allow the user to apply a solid background color to a block.\n\nWhen color support is declared, this property is enabled by default (along with text), so simply setting color will enable background color.\n\nTo disable background support while keeping other color supports enabled, set to false.\n\nWhen the block declares support for color.background, its attributes definition is extended to include two new attributes: backgroundColor and style","type":"boolean","default":true},"gradients":{"description":"This property adds UI controls which allow the user to apply a gradient background to a block.\n\nGradient presets are sourced from editor-gradient-presets theme support.\n\nWhen the block declares support for color.gradient, its attributes definition is extended to include two new attributes: gradient and style","type":"boolean","default":false},"link":{"description":"This property adds block controls which allow the user to set link color in a block, link color is disabled by default.\n\nLink color presets are sourced from the editor-color-palette theme support.\n\nWhen the block declares support for color.link, its attributes definition is extended to include the style attribute","type":"boolean","default":false},"text":{"description":"This property adds block controls which allow the user to set text color in a block.\n\nWhen color support is declared, this property is enabled by default (along with background), so simply setting color will enable text color.\n\nText color presets are sourced from the editor-color-palette theme support.\n\nWhen the block declares support for color.text, its attributes definition is extended to include two new attributes: textColor and style","type":"boolean","default":true},"heading":{"description":"This property adds block controls which allow the user to set heading colors in a block. Heading color is disabled by default.\n\nHeading color presets are sourced from the editor-color-palette theme support.\n\nWhen the block declares support for color.heading, its attributes definition is extended to include the style attribute","type":"boolean","default":false},"button":{"description":"This property adds block controls which allow the user to set button colors in a block. Button color is disabled by default.\n\nButton color presets are sourced from the editor-color-palette theme support.\n\nWhen the block declares support for color.button, its attributes definition is extended to include the style attribute","type":"boolean","default":false},"enableContrastChecker":{"description":"Determines whether the contrast checker widget displays in the block editor UI.\n\nThe contrast checker appears only if the block declares support for color. It tests the readability of color combinations and warns if there is a potential issue. The property is enabled by default.\n\nSet to `false` to explicitly disable.","type":"boolean","default":true}}},"customClassName":{"description":"This property adds a field to define a custom className for the block\u2019s wrapper.","type":"boolean","default":true},"dimensions":{"description":"This value signals that a block supports some of the CSS style properties related to dimensions. When it does, the block editor will show UI controls for the user to set their values if the theme declares support.\n\nWhen the block declares support for a specific dimensions property, its attributes definition is extended to include the style attribute.","type":"object","properties":{"aspectRatio":{"description":"Allow blocks to define an aspect ratio value.","type":"boolean","default":false},"minHeight":{"description":"Allow blocks to define a minimum height value.","type":"boolean","default":false}}},"filter":{"description":"This value signals that a block supports some of the properties related to filters. When it does, the block editor will show UI controls for the user to set their values if the theme declares support.\n\nWhen the block declares support for a specific filter property, its attributes definition is extended to include the style attribute.","type":"object","properties":{"duotone":{"description":"Allow blocks to define a duotone filter.","type":"boolean","default":false}}},"background":{"description":"This value signals that a block supports some of the CSS style properties related to background. When it does, the block editor will show UI controls for the user to set their values if the theme declares support.\n\nWhen the block declares support for a specific background property, its attributes definition is extended to include the style attribute.","type":"object","properties":{"backgroundImage":{"description":"Allow blocks to define a background image.","type":"boolean","default":false},"backgroundSize":{"description":"Allow blocks to define values related to the size of a background image, including size, position, and repeat controls","type":"boolean","default":false}}},"html":{"description":"By default, a block\u2019s markup can be edited individually. To disable this behavior, set html to false.","type":"boolean","default":true},"inserter":{"description":"By default, all blocks will appear in the inserter, block transforms menu, Style Book, etc. To hide a block from all parts of the user interface so that it can only be inserted programmatically, set inserter to false.","type":"boolean","default":true},"renaming":{"description":"By default, a block can be renamed by a user from the block 'Options' dropdown or the 'Advanced' panel. To disable this behavior, set renaming to false.","type":"boolean","default":true},"layout":{"description":"This value only applies to blocks that are containers for inner blocks. If set to `true` the layout type will be `flow`. For other layout types it's necessary to set the `type` explicitly inside the `default` object.","oneOf":[{"type":"boolean"},{"type":"object","properties":{"default":{"description":"Allows setting the `type` property to define what layout type is default for the block, and also default values for any properties inherent to that layout type, e.g., for a `flex` layout, a default value can be set for `flexWrap`.","type":"object","properties":{"type":{"description":"The layout type.","type":"string","enum":["constrained","grid","flex"]},"contentSize":{"description":"The content size used on all children.","type":"string"},"wideSize":{"description":"The wide size used on alignwide children.","type":"string"},"justifyContent":{"description":"Content justification value.","type":"string","enum":["right","center","space-between","left","stretch"]},"orientation":{"description":"The orientation of the layout.","type":"string","enum":["horizontal","vertical"]},"flexWrap":{"description":"The flex wrap value.","type":"string","enum":["wrap","nowrap"]},"verticalAlignment":{"description":"The vertical alignment value.","type":"string","enum":["top","center","bottom","space-between","stretch"]},"minimumColumnWidth":{"description":"The minimum column width value.","type":"string"},"columnCount":{"description":"The column count value.","type":"number"}}},"allowSwitching":{"description":"Exposes a switcher control that allows toggling between all existing layout types.","type":"boolean","default":false},"allowEditing":{"description":"Determines display of layout controls in the block sidebar. If set to false, layout controls will be hidden.","type":"boolean","default":true},"allowInheriting":{"description":"For the `flow` layout type only, determines display of the `Inner blocks use content width` toggle.","type":"boolean","default":true},"allowSizingOnChildren":{"description":"For the `flex` layout type only, determines display of sizing controls (Fit/Fill/Fixed) on all child blocks of the flex block.","type":"boolean","default":false},"allowVerticalAlignment":{"description":"For the `flex` layout type only, determines display of vertical alignment controls in the block toolbar.","type":"boolean","default":true},"allowJustification":{"description":"For the `flex` layout type, determines display of justification controls in the block toolbar and block sidebar. For the `constrained` layout type, determines display of justification control in the block sidebar.","type":"boolean","default":true},"allowOrientation":{"description":"For the `flex` layout type only, determines display of the orientation control in the block toolbar.","type":"boolean","default":true},"allowCustomContentAndWideSize":{"description":"For the `constrained` layout type only, determines display of the custom content and wide size controls in the block sidebar.","type":"boolean","default":true}}}],"default":false},"multiple":{"description":"A non-multiple block can be inserted into each post, one time only. For example, the built-in \u2018More\u2019 block cannot be inserted again if it already exists in the post being edited. A non-multiple block\u2019s icon is automatically dimmed (unclickable) to prevent multiple instances.","type":"boolean","default":true},"reusable":{"description":"A block may want to disable the ability of being converted into a reusable block. By default all blocks can be converted to a reusable block. If supports reusable is set to false, the option to convert the block into a reusable block will not appear.","type":"boolean","default":true},"lock":{"description":"A block may want to disable the ability to toggle the lock state. It can be locked/unlocked by a user from the block 'Options' dropdown by default. To disable this behavior, set lock to false.","type":"boolean","default":true},"position":{"description":"This value signals that a block supports some of the CSS style properties related to position. When it does, the block editor will show UI controls for the user to set their values if the theme declares support.\n\nWhen the block declares support for a specific position property, its attributes definition is extended to include the style attribute.","type":"object","properties":{"sticky":{"description":"Allow blocks to stick to their immediate parent when scrolling the page.","type":"boolean","default":false}}},"spacing":{"description":"This value signals that a block supports some of the CSS style properties related to spacing. When it does, the block editor will show UI controls for the user to set their values if the theme declares support.\n\nWhen the block declares support for a specific spacing property, its attributes definition is extended to include the style attribute.","type":"object","properties":{"margin":{"oneOf":[{"type":"boolean"},{"type":"array","items":{"type":"string","enum":["top","right","left","bottom"]}},{"type":"array","items":{"type":"string","enum":["vertical","horizontal"]}}]},"padding":{"oneOf":[{"type":"boolean"},{"type":"array","items":{"type":"string","enum":["top","right","left","bottom"]}},{"type":"array","items":{"type":"string","enum":["vertical","horizontal"]}}]}}},"shadow":{"description":"Allow blocks to define a box shadow.","oneOf":[{"description":"Defines whether a box shadow is enabled or not.","type":"boolean"},{"type":"object"}],"default":false},"typography":{"description":"This value signals that a block supports some of the CSS style properties related to typography. When it does, the block editor will show UI controls for the user to set their values if the theme declares support.\n\nWhen the block declares support for a specific typography property, its attributes definition is extended to include the style attribute.","type":"object","properties":{"fontSize":{"description":"This value signals that a block supports the font-size CSS style property. When it does, the block editor will show an UI control for the user to set its value.\n\nThe values shown in this control are the ones declared by the theme via the editor-font-sizes theme support, or the default ones if none is provided.\n\nWhen the block declares support for fontSize, its attributes definition is extended to include two new attributes: fontSize and style","type":"boolean","default":false},"lineHeight":{"description":"This value signals that a block supports the line-height CSS style property. When it does, the block editor will show an UI control for the user to set its value if the theme declares support.\n\nWhen the block declares support for lineHeight, its attributes definition is extended to include a new attribute style of object type with no default assigned. It stores the custom value set by the user. The block can apply a default style by specifying its own style attribute with a default","type":"boolean","default":false},"textAlign":{"description":"This property adds block toolbar controls which allow to change block's text alignment.","oneOf":[{"type":"boolean"},{"type":"array","items":{"type":"string","enum":["left","center","right"]}}],"default":false}}},"interactivity":{"description":"Indicates if the block is using Interactivity API features.","oneOf":[{"description":"Indicates whether the block is using the Interactivity API directives.","type":"boolean","default":false},{"type":"object","properties":{"clientNavigation":{"description":"Indicates whether a block is compatible with the Interactivity API client-side navigation.\n\nSet it to true only if the block is not interactive or if it is interactive using the Interactivity API. Set it to false if the block is interactive but uses vanilla JS, jQuery or another JS framework/library other than the Interactivity API.","type":"boolean","default":false},"interactive":{"description":"Indicates whether the block is using the Interactivity API directives.","type":"boolean","default":false}}}]},"splitting":{"description":"This property indicates whether the block can split when the Enter key is pressed or when blocks are pasted.","type":"boolean","default":false}},"additionalProperties":true},"selectors":{"description":"Provides custom CSS selectors and mappings for the block. Selectors may be set for the block itself or per-feature e.g. typography. Custom selectors per feature or sub-feature, allow different block styles to be applied to different elements within the block.","type":"object","properties":{"root":{"description":"The primary CSS class to apply to the block. This replaces the `.wp-block-name` class if set.","type":"string"},"border":{"description":"Custom CSS selector used to generate rules for the block's theme.json border styles.","oneOf":[{"type":"string"},{"type":"object","properties":{"root":{"type":"string"},"color":{"type":"string"},"radius":{"type":"string"},"style":{"type":"string"},"width":{"type":"string"}}}]},"color":{"description":"Custom CSS selector used to generate rules for the block's theme.json color styles.","oneOf":[{"type":"string"},{"type":"object","properties":{"root":{"type":"string"},"text":{"type":"string"},"background":{"type":"string"}}}]},"dimensions":{"description":"Custom CSS selector used to generate rules for the block's theme.json dimensions styles.","oneOf":[{"type":"string"},{"type":"object","properties":{"root":{"type":"string"},"aspectRatio":{"type":"string"},"minHeight":{"type":"string"}}}]},"spacing":{"description":"Custom CSS selector used to generate rules for the block's theme.json spacing styles.","oneOf":[{"type":"string"},{"type":"object","properties":{"root":{"type":"string"},"blockGap":{"type":"string"},"padding":{"type":"string"},"margin":{"type":"string"}}}]},"typography":{"description":"Custom CSS selector used to generate rules for the block's theme.json typography styles.","oneOf":[{"type":"string"},{"type":"object","properties":{"root":{"type":"string"},"fontFamily":{"type":"string"},"fontSize":{"type":"string"},"fontStyle":{"type":"string"},"fontWeight":{"type":"string"},"lineHeight":{"type":"string"},"letterSpacing":{"type":"string"},"textDecoration":{"type":"string"},"textTransform":{"type":"string"}}}]}}},"styles":{"description":"Block styles can be used to provide alternative styles to block. It works by adding a class name to the block\u2019s wrapper. Using CSS, a theme developer can target the class name for the block style if it is selected.\n\nPlugins and Themes can also register custom block style for existing blocks.\n\nhttps://developer.wordpress.org/block-editor/reference-guides/block-api/block-styles/","type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"isDefault":{"type":"boolean","default":false}},"required":["name","label"],"additionalProperties":false}},"example":{"description":"It provides structured example data for the block. This data is used to construct a preview for the block to be shown in the Inspector Help Panel when the user mouses over the block.\n\nSee the example documentation at https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/#example-optional for more details.","type":"object","properties":{"viewportWidth":{"description":"The viewportWidth controls the width of the iFrame container in which the block preview will get rendered","type":"number","default":1200},"attributes":{"description":"Set the attributes for the block example","type":"object"},"innerBlocks":{"description":"Set the inner blocks that should be used within the block example. The blocks should be defined as a nested array like this:\n\n[ { \"name\": \"core/heading\", \"attributes\": { \"content\": \"This is an Example\" } } ]\n\nWhere each block itself is an object that contains the block name, the block attributes, and the blocks inner blocks.","type":"array"}}},"blockHooks":{"description":"Block Hooks allow a block to automatically insert itself next to all instances of a given block type.\n\nSee the Block Hooks documentation at https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/#block-hooks-optional for more details.","type":"object","patternProperties":{"^[a-z][a-z0-9-]*/[a-z][a-z0-9-]*$":{"type":"string","enum":["before","after","firstChild","lastChild"]}},"additionalProperties":false},"editorScript":{"description":"Block type editor script definition. It will only be enqueued in the context of the editor.","oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"script":{"description":"Block type frontend and editor script definition. It will be enqueued both in the editor and when viewing the content on the front of the site.","oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"viewScript":{"description":"Block type frontend script definition. It will be enqueued only when viewing the content on the front of the site.","oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"viewScriptModule":{"description":"Block type frontend script module definition. It will be enqueued only when viewing the content on the front of the site.","oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"editorStyle":{"description":"Block type editor style definition. It will only be enqueued in the context of the editor.","oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"style":{"description":"Block type frontend style definition. It will be enqueued both in the editor and when viewing the content on the front of the site.","oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"viewStyle":{"description":"Block type frontend style definition. It will be enqueued only when viewing the content on the front of the site.","oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"variations":{"description":"Block Variations is the API that allows a block to have similar versions of it, but all these versions share some common functionality.","oneOf":[{"description":"The path to a PHP file that returns an array of block variations.","type":"string"},{"description":"An array of block variations.","type":"array","items":{"type":"object","properties":{"name":{"description":"The unique and machine-readable name.","type":"string"},"title":{"description":"A human-readable variation title.","type":"string"},"description":{"description":"A detailed variation description.","type":"string"},"category":{"description":"A category classification, used in search interfaces to arrange block types by category.","anyOf":[{"type":"string"},{"type":"string","enum":["text","media","design","widgets","theme","embed"]}]},"icon":{"description":"An icon helping to visualize the variation. It can have the same shape as the block type.","type":"string"},"isDefault":{"description":"Indicates whether the current variation is the default one.","type":"boolean","default":false},"attributes":{"description":"Values that override block attributes.","type":"object"},"innerBlocks":{"description":"Initial configuration of nested blocks.","type":"array","items":{"type":"array"}},"example":{"description":"Example provides structured data for the block preview. You can set to undefined to disable the preview shown for the block type.","type":"object"},"scope":{"description":"The list of scopes where the variation is applicable.","type":"array","items":{"type":"string","enum":["inserter","block","transform"]},"default":["inserter","block"]},"keywords":{"description":"An array of terms (which can be translated) that help users discover the variation while searching.","type":"array","items":{"type":"string"}},"isActive":{"description":"The list of attributes that should be compared. Each attributes will be matched and the variation will be active if all of them are matching.","type":"array","items":{"type":"string"}}},"required":["name","title"],"additionalProperties":false}}]},"render":{"description":"Template file loaded on the server when rendering a block.","type":"string"}},"required":["name","title"],"additionalProperties":false}
</schema>

[User] Provide a JSON object that satisfies the schema "JSON schema for WordPress blocks". Here are the required top‑level fields: name, title. Return only the valid JSON object.

JSON schema for WordPress blocks

The version of the Block API used by the block. The most recent version is 3 and it was introduced in WordPress 6.3.

 See the API versions documentation at https://developer.wordpress.org/block-editor/reference-guides/block-api/block-api-versions/ for more details.

The name for a block is a unique string that identifies a block. Names have to be structured as `namespace/block-name`, where namespace is the name of your plugin or theme.

The name of the experiment this block is a part of, or boolean true if there is no specific experiment name.

This is the display title for your block, which can be translated with our translation functions. The block inserter will show this name.

Blocks are grouped into categories to help users browse and discover them.
 Core provided categories are: text, media, design, widgets, theme, embed

Plugins and Themes can also register custom block categories.

https://developer.wordpress.org/block-editor/reference-guides/filters/block-filters/#managing-block-categories

Setting parent lets a block require that it is only available when nested within the specified blocks. For example, you might want to allow an ‘Add to Cart’ block to only be available within a ‘Product’ block.

The `ancestor` property makes a block available inside the specified block types at any position of the ancestor block subtree. That allows, for example, to place a ‘Comment Content’ block inside a ‘Column’ block, as long as ‘Column’ is somewhere within a ‘Comment Template’ block.

The `allowedBlocks` property specifies that only the listed block types can be the children of this block. For example, a ‘List’ block allows only ‘List Item’ blocks as direct children.

An icon property should be specified to make it easier to identify a block. These can be any of WordPress’ Dashicons (slug serving also as a fallback in non-js contexts).

This is a short description for your block, which can be translated with our translation functions. This will be shown in the block inspector.

Sometimes a block could have aliases that help users discover it while searching. For example, an image block could also want to be discovered by photo. You can do so by providing an array of unlimited terms (which are translated).

The current version number of the block, such as 1.0 or 1.0.3. It’s similar to how plugins are versioned. This field might be used with block assets to control cache invalidation, and when the block author omits it, then the installed version of WordPress is used instead.

The gettext text domain of the plugin/block. More information can be found in the Text Domain section of the How to Internationalize your Plugin page.

https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/

Attributes provide the structured data needs of a block. They can exist in different forms when they are serialized, but they are declared together under a common interface.

See the attributes documentation at https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/ for more details.

The type indicates the type of data that is stored by the attribute. It does not indicate where the data is stored, which is defined by the source field.

A type is required, unless an enum is provided. A type can be used with an enum.

Note that the validity of an object is determined by your source. For an example, see the query details below.

null boolean object array string rich-text integer number

null boolean object array string integer number

An attribute can be defined as one of a fixed set of values. This is specified by an enum, which contains an array of allowed values:

Attribute sources are used to define how the attribute values are extracted from saved post content. They provide a mechanism to map from the saved markup to a JavaScript representation of a block.

attribute text rich-text html raw query meta

The selector can be an HTML tag, or anything queryable with querySelector, such as a class or id attribute. Examples are given below.

For example, a selector of img will match an img element, and img.class will match an img element that has a class of class.

Use an attribute source to extract the value from an attribute in the markup. The attribute is specified by the attribute field, which must be supplied.

Example: Extract the src attribute from an image found in the block’s markup.

Use query to extract an array of values from markup. Entries of the array are determined by the selector argument, where each matched element within the block will have an entry structured corresponding to the second argument, an object of attribute sources.

Although attributes may be obtained from a post’s meta, meta attribute sources are considered deprecated; EntityProvider and related hook APIs should be used instead, as shown in the Create Meta Block how-to here:

https://developer.wordpress.org/block-editor/how-to-guides/metabox/#step-2-add-meta-block

Designates the conceptual type of the attribute.

The `content` value marks the attribute as user-editable content, and the `local` value marks the attribute as temporary and non-persistable.

A block attribute can contain a default value, which will be used if the type and source do not match anything within the block content.

The value is provided by the default field, and the value should match the expected format of the attribute.

Context provided for available access by descendants of blocks of this type, in the form of an object which maps a context name to one of the block’s own attribute.

See the block context documentation at https://developer.wordpress.org/block-editor/reference-guides/block-api/block-context/ for more details.

Array of the names of context values to inherit from an ancestor provider.

See the block context documentation at https://developer.wordpress.org/block-editor/reference-guides/block-api/block-context/ for more details.

It contains as set of options to control features used in the editor. See the supports documentation at https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/ for more details.

Anchors let you link directly to a specific block on a page. This property adds a field to define an id for the block and a button to copy the direct link.

This property adds block controls which allow to change block’s alignment.

This property allows to enable wide alignment for your theme. To disable this behavior for a single block, set this flag to false.

ARIA-labels let you define an accessible label for elements. This property allows enabling the definition of an aria-label for the block, without exposing a UI field.

By default, the class .wp-block-your-block-name is added to the root element of your saved markup. This helps having a consistent mechanism for styling blocks that themes and plugins can rely on. If, for whatever reason, a class is not desired on the markup, this functionality can be disabled.

This value signals that a block supports some of the properties related to color. When it does, the block editor will show UI controls for the user to set their values.

Note that the background and text keys have a default value of true, so if the color property is present they’ll also be considered enabled

This property adds UI controls which allow the user to apply a solid background color to a block.

When color support is declared, this property is enabled by default (along with text), so simply setting color will enable background color.

To disable background support while keeping other color supports enabled, set to false.

When the block declares support for color.background, its attributes definition is extended to include two new attributes: backgroundColor and style

This property adds UI controls which allow the user to apply a gradient background to a block.

Gradient presets are sourced from editor-gradient-presets theme support.

When the block declares support for color.gradient, its attributes definition is extended to include two new attributes: gradient and style

This property adds block controls which allow the user to set link color in a block, link color is disabled by default.

Link color presets are sourced from the editor-color-palette theme support.

When the block declares support for color.link, its attributes definition is extended to include the style attribute

This property adds block controls which allow the user to set text color in a block.

When color support is declared, this property is enabled by default (along with background), so simply setting color will enable text color.

Text color presets are sourced from the editor-color-palette theme support.

When the block declares support for color.text, its attributes definition is extended to include two new attributes: textColor and style

This property adds block controls which allow the user to set heading colors in a block. Heading color is disabled by default.

Heading color presets are sourced from the editor-color-palette theme support.

When the block declares support for color.heading, its attributes definition is extended to include the style attribute

This property adds block controls which allow the user to set button colors in a block. Button color is disabled by default.

Button color presets are sourced from the editor-color-palette theme support.

When the block declares support for color.button, its attributes definition is extended to include the style attribute

Determines whether the contrast checker widget displays in the block editor UI.

The contrast checker appears only if the block declares support for color. It tests the readability of color combinations and warns if there is a potential issue. The property is enabled by default.

Set to `false` to explicitly disable.

This property adds a field to define a custom className for the block’s wrapper.

This value signals that a block supports some of the CSS style properties related to dimensions. When it does, the block editor will show UI controls for the user to set their values if the theme declares support.

When the block declares support for a specific dimensions property, its attributes definition is extended to include the style attribute.

Allow blocks to define an aspect ratio value.

Allow blocks to define a minimum height value.

This value signals that a block supports some of the properties related to filters. When it does, the block editor will show UI controls for the user to set their values if the theme declares support.

When the block declares support for a specific filter property, its attributes definition is extended to include the style attribute.

Allow blocks to define a duotone filter.

This value signals that a block supports some of the CSS style properties related to background. When it does, the block editor will show UI controls for the user to set their values if the theme declares support.

When the block declares support for a specific background property, its attributes definition is extended to include the style attribute.

Allow blocks to define a background image.

Allow blocks to define values related to the size of a background image, including size, position, and repeat controls

By default, a block’s markup can be edited individually. To disable this behavior, set html to false.

By default, all blocks will appear in the inserter, block transforms menu, Style Book, etc. To hide a block from all parts of the user interface so that it can only be inserted programmatically, set inserter to false.

By default, a block can be renamed by a user from the block 'Options' dropdown or the 'Advanced' panel. To disable this behavior, set renaming to false.

This value only applies to blocks that are containers for inner blocks. If set to `true` the layout type will be `flow`. For other layout types it's necessary to set the `type` explicitly inside the `default` object.

Allows setting the `type` property to define what layout type is default for the block, and also default values for any properties inherent to that layout type, e.g., for a `flex` layout, a default value can be set for `flexWrap`.

The layout type.

The content size used on all children.

The wide size used on alignwide children.

Content justification value.

The orientation of the layout.

The flex wrap value.

The vertical alignment value.

The minimum column width value.

The column count value.

Exposes a switcher control that allows toggling between all existing layout types.

Determines display of layout controls in the block sidebar. If set to false, layout controls will be hidden.

For the `flow` layout type only, determines display of the `Inner blocks use content width` toggle.

For the `flex` layout type only, determines display of sizing controls (Fit/Fill/Fixed) on all child blocks of the flex block.

For the `flex` layout type only, determines display of vertical alignment controls in the block toolbar.

For the `flex` layout type, determines display of justification controls in the block toolbar and block sidebar. For the `constrained` layout type, determines display of justification control in the block sidebar.

For the `flex` layout type only, determines display of the orientation control in the block toolbar.

For the `constrained` layout type only, determines display of the custom content and wide size controls in the block sidebar.

A non-multiple block can be inserted into each post, one time only. For example, the built-in ‘More’ block cannot be inserted again if it already exists in the post being edited. A non-multiple block’s icon is automatically dimmed (unclickable) to prevent multiple instances.

A block may want to disable the ability of being converted into a reusable block. By default all blocks can be converted to a reusable block. If supports reusable is set to false, the option to convert the block into a reusable block will not appear.

A block may want to disable the ability to toggle the lock state. It can be locked/unlocked by a user from the block 'Options' dropdown by default. To disable this behavior, set lock to false.

This value signals that a block supports some of the CSS style properties related to position. When it does, the block editor will show UI controls for the user to set their values if the theme declares support.

When the block declares support for a specific position property, its attributes definition is extended to include the style attribute.

Allow blocks to stick to their immediate parent when scrolling the page.

This value signals that a block supports some of the CSS style properties related to spacing. When it does, the block editor will show UI controls for the user to set their values if the theme declares support.

When the block declares support for a specific spacing property, its attributes definition is extended to include the style attribute.

Allow blocks to define a box shadow.

Defines whether a box shadow is enabled or not.

This value signals that a block supports some of the CSS style properties related to typography. When it does, the block editor will show UI controls for the user to set their values if the theme declares support.

When the block declares support for a specific typography property, its attributes definition is extended to include the style attribute.

This value signals that a block supports the font-size CSS style property. When it does, the block editor will show an UI control for the user to set its value.

The values shown in this control are the ones declared by the theme via the editor-font-sizes theme support, or the default ones if none is provided.

When the block declares support for fontSize, its attributes definition is extended to include two new attributes: fontSize and style

This value signals that a block supports the line-height CSS style property. When it does, the block editor will show an UI control for the user to set its value if the theme declares support.

When the block declares support for lineHeight, its attributes definition is extended to include a new attribute style of object type with no default assigned. It stores the custom value set by the user. The block can apply a default style by specifying its own style attribute with a default

This property adds block toolbar controls which allow to change block's text alignment.

Indicates if the block is using Interactivity API features.

Indicates whether the block is using the Interactivity API directives.

Indicates whether a block is compatible with the Interactivity API client-side navigation.

Set it to true only if the block is not interactive or if it is interactive using the Interactivity API. Set it to false if the block is interactive but uses vanilla JS, jQuery or another JS framework/library other than the Interactivity API.

This property indicates whether the block can split when the Enter key is pressed or when blocks are pasted.

Provides custom CSS selectors and mappings for the block. Selectors may be set for the block itself or per-feature e.g. typography. Custom selectors per feature or sub-feature, allow different block styles to be applied to different elements within the block.

The primary CSS class to apply to the block. This replaces the `.wp-block-name` class if set.

Custom CSS selector used to generate rules for the block's theme.json border styles.

Custom CSS selector used to generate rules for the block's theme.json color styles.

Custom CSS selector used to generate rules for the block's theme.json dimensions styles.

Custom CSS selector used to generate rules for the block's theme.json spacing styles.

Custom CSS selector used to generate rules for the block's theme.json typography styles.

Block styles can be used to provide alternative styles to block. It works by adding a class name to the block’s wrapper. Using CSS, a theme developer can target the class name for the block style if it is selected.

Plugins and Themes can also register custom block style for existing blocks.

https://developer.wordpress.org/block-editor/reference-guides/block-api/block-styles/

It provides structured example data for the block. This data is used to construct a preview for the block to be shown in the Inspector Help Panel when the user mouses over the block.

See the example documentation at https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/#example-optional for more details.

The viewportWidth controls the width of the iFrame container in which the block preview will get rendered

Set the attributes for the block example

Set the inner blocks that should be used within the block example. The blocks should be defined as a nested array like this:

[ { "name": "core/heading", "attributes": { "content": "This is an Example" } } ]

Where each block itself is an object that contains the block name, the block attributes, and the blocks inner blocks.

Block Hooks allow a block to automatically insert itself next to all instances of a given block type.

See the Block Hooks documentation at https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/#block-hooks-optional for more details.

Block type editor script definition. It will only be enqueued in the context of the editor.

Block type frontend and editor script definition. It will be enqueued both in the editor and when viewing the content on the front of the site.

Block type frontend script definition. It will be enqueued only when viewing the content on the front of the site.

Block type frontend script module definition. It will be enqueued only when viewing the content on the front of the site.

Block type editor style definition. It will only be enqueued in the context of the editor.

Block type frontend style definition. It will be enqueued both in the editor and when viewing the content on the front of the site.

Block type frontend style definition. It will be enqueued only when viewing the content on the front of the site.

Block Variations is the API that allows a block to have similar versions of it, but all these versions share some common functionality.

The path to a PHP file that returns an array of block variations.

An array of block variations.

The unique and machine-readable name.

A human-readable variation title.

A detailed variation description.

A category classification, used in search interfaces to arrange block types by category.

An icon helping to visualize the variation. It can have the same shape as the block type.

Indicates whether the current variation is the default one.

Values that override block attributes.

Initial configuration of nested blocks.

Example provides structured data for the block preview. You can set to undefined to disable the preview shown for the block type.

The list of scopes where the variation is applicable.

An array of terms (which can be translated) that help users discover the variation while searching.

The list of attributes that should be compared. Each attributes will be matched and the variation will be active if all of them are matching.

Template file loaded on the server when rendering a block.

Provide a JSON object that satisfies the schema "JSON schema for WordPress blocks". Here are the required top‑level fields: name, title. Return only the valid JSON object.


[User] Provide a JSON object that satisfies the schema "blueprint-spec2-schema". Here are the required top‑level fields: none (all optional). Return only the valid JSON object.

workflow metadata

instructions

Exclude From Layout

Layout

Inputs

Labels

Outputs

Environment References

Resources

Grains

Torque Blueprint Spec 2

terraform helm ansible blueprint arm cloudformation kubernetes shell cloudshell argocd opentofu terragrunt aws-cdk

Grain Object

Envrironment Variable

Drift Detected
Updates Detected
Approval Request Approved
Approval Request Denied
Approval Request Cancelled
Environment Ended
Environment Launched
Environment Active With Error
Environment Ending Failed
Environment Force Ended
Environment Extended
Collaborator Added
Environment Idle
Parameter Updates Detected
drift detected
updates detected
approval request approved
approval request denied
approval request cancelled
environment ended
environment launched
environment active with error
environment ending failed
environment force ended
environment extended
collaborator added
environment idle
parameter updates detected

Workflow Trigger

Grain Spec Object

Grain Input

Grain Output

Grain Environment Reference

Grain Command

Spec Host Properties

PurpleSource

TfVarsFileSource

Blueprint Input Object

string execution-host agent credentials parameter env input-source file

In the relevant UI field, enter a description to be displayed to the user.

Blueptint Output Object

Blueptint Environment Reference Object

Blueptint Resource Requirement

Blueptint Resource Selector

InstructionsSource

LayoutSource

Provide a JSON object that satisfies the schema "blueprint-spec2-schema". Here are the required top‑level fields: none (all optional). Return only the valid JSON object.