Generate Set Workspace Node Template from Variant
generate_set_workspace_node_template_from_variantGenerate a workspace node template from a node-type corpus variant without needing the original source repo, with optional comparison to a live workspace node.
Instructions
Generate a set_workspace_node body template from a node-type corpus variant stored in the committed snapshot. This avoids requiring the original external node source repo at runtime, rejects partial variants unless allowPartial=true, and can optionally compare the inferred template against a live workspace node. SQL override controls are removed from returned templates because they are disallowed in this project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeID | No | Optional node ID for comparing inferred mappings to a live workspace node. | |
| schema | No | Optional schema value to include in the template. | |
| database | No | Optional database value to include in the template. | |
| nodeName | No | Optional node name to inject into the generated template. | |
| nodeType | No | Optional nodeType override. Defaults to the variant definition capitalized field. | |
| variantKey | Yes | The exact node-type corpus variant key. | |
| workspaceID | No | Optional workspace ID for comparing inferred mappings to a live workspace node. | |
| allowPartial | No | When true, allow best-effort generation for variants currently marked partial. | |
| locationName | No | Optional storage location name to include in the template. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| warnings | No | ||
| comparison | No | ||
| nodeDefinition | No | ||
| nodeMetadataSpecYaml | No | ||
| setWorkspaceNodeBodyTemplate | No | ||
| setWorkspaceNodeBodyTemplateYaml | No |