create_variable
Create and store variables in Prefect workflows by specifying a name, value, and optional tags for data persistence and reuse across automation tasks.
Instructions
Create a variable.
Args: name: The variable name value: The variable value (can be string, dict, list, etc.) tags: Optional tags
Returns: Details of the created variable
Input Schema
Name | Required | Description | Default |
---|---|---|---|
name | Yes | ||
tags | No | ||
value | Yes |
Input Schema (JSON Schema)
{
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"tags": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Tags"
},
"value": {
"title": "Value"
}
},
"required": [
"name",
"value"
],
"type": "object"
}