add_is_valid_node
Adds an IsValid macro node to Blueprint graphs, checking object references to prevent crashes from accessing null or destroyed actors.
Instructions
Add an IsValid macro node to check if an object reference is valid (non-null).
From Ch. 3, 4, 11, 13: Used before accessing object references to prevent crashes from accessing null/destroyed actors. Returns Is Valid and Is Not Valid execution pins.
Args: blueprint_name: Blueprint to add the node to node_position: [X, Y] graph position
KB: see knowledge_base/01_BLUEPRINT_FUNDAMENTALS.md#overview Example: add_is_valid_node(blueprint_name="/Game/MCP_Test/BP_Example")
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"blueprint_name": "<blueprint_name>"
},
"name": "add_is_valid_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_position | No | ||
| blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |