ue5_apply_blueprint_graph
Writes a complete Blueprint graph in one atomic transaction, compiles it, verifies by read-back, and rolls back on failure. Use it as the main path for graph logic after searching nodes.
Instructions
Declarative whole-graph write: one atomic transaction builds/wires the GraphSpec, compiles outside it, verifies by read-back, rolls back on failure. Main path for graph logic; build the spec from ue5_search_blueprint_nodes first. Node-level tools (ue5_connect_pins / ue5_delete_node) only for surgical fixes. | 整图写入主路径:原子事务 + 读回 verified + 失败回滚;先 search 再 apply。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bp_path | Yes | Blueprint asset path, e.g. /Game/BP_Test | 蓝图资产路径 | |
| replace | No | Replace existing graph content (required true when graph is non-empty) | 替换语义开关(图非空时必须显式 true) | |
| graph_spec | Yes | GraphSpec: {graph, nodes:[{id, kind, target, class?, pos?}], edges:[{from:"id.pin", to:"id.pin"}], pin_defaults:{"id.pin": value}} — see SKILL.md §3.7 | 图规格(节点/边/默认值,见 SKILL.md §3.7) | |
| session_id | No | Optional session/owner for asset lock checks | 可选:会话标识(多 Agent 资产锁) | |
| idempotency_key | No | Optional idempotency key; a repeated key within 10 min replays the prior success | 可选:幂等键(10 分钟内重放上次成功结果) |