add_function_local_variable
Add a variable scoped to a single Blueprint function graph so scratch state stays hidden from other graphs instead of becoming a class member.
Instructions
Add a variable scoped to ONE function graph (interface-override graphs included), instead of a class member like add_blueprint_variable -- use it for scratch state that no other graph should see. Reach it from the graph with add_graph_node node_type=variable_get/variable_set and scope="local" (the default scope="auto" already prefers a local over a member of the same name).
Returns: { blueprint_name, function_name, variable_name, variable_type } -- an echo of the request; local variables do NOT appear in get_blueprint_variables (which lists members), so verify from the graph itself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| default_value | No | Initial default value for the local variable, in exported-text form; optional | |
| function_name | Yes | Name of an existing function graph (FunctionGraphs or an interface-override graph) | |
| variable_name | Yes | Variable name; the call fails if the name already exists in that function | |
| variable_type | Yes | Type string: bool, int, int64, float, string, name, text, byte, Vector, or a struct/enum/class/object name or path | |
| blueprint_name | No | Blueprint asset name or path | |
| blueprint_path | No | Alias of `blueprint_name` (same value, same meaning). Accepted because sibling tools spell this parameter differently; prefer `blueprint_name`. |