Skip to main content

Set Variable (AI Tool)

Store a value in a named variable that can be retrieved later. Useful for remembering user preferences, intermediate results, or any data the AI needs to persist across tool calls.

Properties

PropertyValue
Typeai-set-variable-tool
FamilyAI
GroupTools

Parameters

NameLabelTypeDescriptionRequired
toolNameTool NameStringName the AI will use to call this toolYes
toolDescriptionTool DescriptionStringDescription to help the AI understand when to use this toolYes
variableNameVariable NameStringThe name of the variable to set (e.g., ‘user_preference’, ‘search_results’)No
valueValueStringThe value to store (can be a string, number, JSON object, or array)No

Outputs

NameLabelTypeDescription
variableNamevariableNamestringName of the variable that was set
valuevalueanyThe value that was stored
successsuccessbooleanWhether the operation succeeded