bp_find_unused_variables
Find Blueprint variables declared but never referenced in any graph. Use safe mode to distinguish possibly unused instance-editable variables, preventing false positives during cleanup.
Instructions
Find Blueprint variables declared but not referenced in any graph.
Important: Variables that are instance-editable or exposed on spawn without graph usage are reported as 'possibly_unused' (not definitely unused) to prevent false positives.
Args: blueprint_path: Full asset path or plain name safe_mode: If True, mark instance-editable vars as 'possibly_unused' rather than 'unused' (default True — safer)
Returns: StructuredResult with outputs: unused_variables[] — list of variable issue items all_variables[] — all declared variable names variables_checked — int
KB: see knowledge_base/32_AGENT_PLAYABLE_SLICE_RECIPE.md#overview Example: bp_find_unused_variables(blueprint_path="/Game/MCP_Test/BP_Example")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| safe_mode | No | ||
| blueprint_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |