unreal.SlateInspectorToolset¶
- class unreal.SlateInspectorToolset(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
ToolsetDefinitionPlaywright-style Slate UI automation toolset.
Exposes snapshot, screenshot, and interaction tools for driving the Unreal Editor UI programmatically. Registered via UToolsetRegistry so the ModelContextProtocol plugin picks them up automatically.
A shallow root observer (depth 0) continuously tracks top-level windows. Before working with a specific window or panel, call Observe() on it to get deep widget coverage, then Unobserve() when done. Observers walk their subtree every ~100ms, assigning refs to newly appeared widgets and keeping the ref cache current.
Input simulation uses direct Slate event APIs (ProcessKeyCharEvent, ProcessMouseButtonDownEvent, etc.) rather than the AutomationDriver, because AutomationDriver’s synchronous API deadlocks when called from the game thread (which is where MCP tool calls execute).
C++ Source:
Plugin: SlateInspectorToolset
Module: SlateInspectorToolset
File: SlateInspectorToolset.h