CLI 与结果格式
公开入口
使用 ueagent setup 检查依赖,使用 ueagent connect MyGame.uproject 连接编辑器。 录制与媒体导出使用 ueagentdevkit[media],窗口清单使用 ueagentdevkit[windows]。
Win64 自动安装目录提供 PinWright 1.0.0(UE 5.4)、Monolith 0.25.0(UE 5.7/5.8)和 UmgMcp 1.0.12(UE 5.8)。目标编辑器应关闭,下载的插件包需通过哈希和 Build ID 校验。--build-source 允许 UAT 编译固定版本的 BlueprintMCP(UE 5.4)。用 --no-install 只使用本机安装。
请求 blueprint 或 animgraph 时可用 --asset 指定读回目标。只有实际读回通过才返回零。提供方状态见 支持矩阵。
使用 ueagent scenario MyGame.uproject --profile Tools/UEAgent/playtest.json 启动渲染 PIE;日常开发可加 --no-record --no-evidence 和 --endpoint 跳过录制与重复连接探测。准备步骤与 JSON 字段见 试玩 Scenario。
ueagent media compare before.mp4 after.mp4 --start 0 --end 10 --interval 0.5 --after-offset 0.25 --run .--run 指向已有输出目录。可以指定 --seconds 0.5 1.0 2.5 代替范围。偏移量加到各自视频的时间,输出包括原始帧、并排 PNG、index.html 和 media.json。
Automation 结果
run、check-report 在 PASS 时退出 0,其他结果退出 1。参数解析错误通常为 2。报告匹配精确 fullTestPath。NOT_RUN 表示未匹配到用例,FAIL 表示报告中有失败,ERROR 表示结果不明确或运行出错。仅有报告还需核对正常 Editor 退出。 run 依次输出运行目录与 JSON 结果。快速定位可查看 result.json、report.md、editor.log 及 Automation/index.json。治理命令常输出 JSON 报告路径,预检直接输出 JSON。查看 副作用与验收。
参数帮助
以下输出由公开 CLI 生成。
ueagent --help
usage: ueagent [-h]
{setup,connect,timeline,compare,pie-lab,mux,record,pck,association,uap-lab,inspector,windows,media,hygiene,pie,scenario,verify-animation,doctor,run,check-report}
...
Win64 UE project inspection, isolated Automation, and offline report
validation.
positional arguments:
{setup,connect,timeline,compare,pie-lab,mux,record,pck,association,uap-lab,inspector,windows,media,hygiene,pie,scenario,verify-animation,doctor,run,check-report}
setup Inspect dependencies and configure local providers
association Inspect the Windows .uproject file association as JSON
uap-lab Build the pinned UnrealAgentPlayer and exercise a
disposable rendered host
pie Run rendered PIE movement and evidence capture in a
dedicated test host
scenario Run a project-defined PIE scenario and collect
gameplay evidence
verify-animation Run Layered Blend, state-machine and Montage probes in
a disposable lab
options:
-h, --help show this help message and exitueagent setup --help
usage: ueagent setup [-h] [--umg-plugin UMG_PLUGIN] [--umg-alias UMG_ALIAS]
[--skills-dir SKILLS_DIR]
[--capture-project CAPTURE_PROJECT]
options:
-h, --help show this help message and exit
--umg-plugin UMG_PLUGIN
Locally installed UmgMcp.uplugin
--umg-alias UMG_ALIAS
--skills-dir SKILLS_DIR
Install DevKit agent skills into this directory
--capture-project CAPTURE_PROJECT
Install and enable the source viewport capture pluginueagent connect --help
usage: connect_editor.py [-h] [--project PROJECT] [--provider PROVIDER]
[--widget WIDGET] [--asset ASSET] [--client CLIENT]
[--capability CAPABILITY] [--engine ENGINE]
[--local-ddc LOCAL_DDC] [--umg-alias UMG_ALIAS]
[--dry-run] [--no-register] [--auto-enable]
[--no-install] [--build-source] [--verbose]
[target]
Use the pinned upstream capability router and register an exact Codex
endpoint.
positional arguments:
target Unreal project descriptor
options:
-h, --help show this help message and exit
--project PROJECT
--provider PROVIDER
--widget WIDGET Read a known /Game widget tree from the matched UMG
instance
--asset ASSET Asset to read for --capability blueprint, animgraph or
niagara
--client CLIENT
--capability CAPABILITY
--engine ENGINE
--local-ddc LOCAL_DDC
Use an existing filesystem DDC directory on cold
launch
--umg-alias UMG_ALIAS
Existing Codex stdio registration for UMG
--dry-run
--no-register
--auto-enable
--no-install
--build-source
--verboseueagent association --help
usage: ueagent association [-h] [--wizard | --launcher-reports-error]
options:
-h, --help show this help message and exit
--wizard Open the interactive diagnosis and repair wizard
--launcher-reports-error
Record that Epic still shows the file association
warningueagent doctor --help
usage: ueagent doctor [-h] [--project PROJECT] [--profile PROFILE]
[--engine ENGINE] [--mcp | --mcp-url MCP_URL]
[--verbose]
options:
-h, --help show this help message and exit
--project PROJECT
--profile PROFILE Read project, engine and Automation defaults from JSON
--engine ENGINE
--mcp Include read-only upstream plugin and listener inventory
--mcp-url MCP_URL List tools at an explicit loopback endpoint
--verbose Print full environment JSON instead of a concise summaryueagent run --help
usage: ueagent run [-h] [--project PROJECT] [--profile PROFILE]
[--engine ENGINE] [--test TEST] [--target TARGET]
[--native] [--skip-build] [--editor-arg EDITOR_ARG]
[--timeout TIMEOUT]
options:
-h, --help show this help message and exit
--project PROJECT
--profile PROFILE Read project, engine and Automation defaults from JSON
--engine ENGINE
--test TEST
--target TARGET
--native Use UE Automation without the optional MCP provider
--skip-build Compatibility flag. Native targets always receive an
incremental UBT check.
--editor-arg EDITOR_ARG
Extra flag passed to UnrealEditor-Cmd (repeatable)
--timeout TIMEOUT Seconds per stageueagent check-report --help
usage: ueagent check-report [-h] --test TEST index
positional arguments:
index
options:
-h, --help show this help message and exit
--test TESTueagent pie-lab --help
usage: make_pie_lab.py [-h] --monolith MONOLITH [--name NAME]
[--graph-providers] [--movement-fixture]
Create an isolated content-only test host using a locally available Monolith
installation.
options:
-h, --help show this help message and exit
--monolith MONOLITH Path to the locally licensed Monolith.uplugin
--name NAME New directory and uproject name under Artifacts/Labs
--graph-providers Also enable locally installed Nwiro and UmgMcp
--movement-fixture Use the editable input-binding regression blueprintueagent pie --help
usage: pie_behavior.py [-h] --project PROJECT [--profile PROFILE]
[--min-cm MIN_CM] [--ready-timeout READY_TIMEOUT]
[--fixture-bindings {on,off}]
Drive one Monolith PIE capture in an explicitly selected isolated test
project.
options:
-h, --help show this help message and exit
--project PROJECT Dedicated lab project; may launch an editor and load a
map
--profile PROFILE
--min-cm MIN_CM
--ready-timeout READY_TIMEOUT
--fixture-bindings {on,off}
Set and compile the generated lab pawn's movement
bindingueagent scenario --help
usage: scenario.py [-h] --profile PROFILE [--allow-project-probe]
[--local-ddc LOCAL_DDC] [--endpoint ENDPOINT] [--no-record]
[--mode {development,diagnosis,release}] [--no-video]
[--no-audio] [--no-assertions] [--no-evidence] [--verbose]
[--keep-editor]
project
Start rendered PIE, run a project scenario and collect synchronized gameplay
evidence.
positional arguments:
project Existing .uproject
options:
-h, --help show this help message and exit
--profile PROFILE Version 1 JSON scenario
--allow-project-probe
Run the trusted Python probe named by the scenario
--local-ddc LOCAL_DDC
Use an existing filesystem DDC directory on cold
launch
--endpoint ENDPOINT Reuse an already-verified loopback Monolith MCP
endpoint
--no-record Skip both video and audio recording
--mode {development,diagnosis,release}
Development runs assertions only by default. Diagnosis
and release request capture and evidence.
--no-video Skip viewport video recording
--no-audio Skip master submix audio recording
--no-assertions Run steps without evaluating assertions
--no-evidence Skip extra evidence files and discard raw frames after
MP4 verification
--verbose Print full JSON result instead of a concise summary
--keep-editor Leave an editor this run cold-started open afterwardsueagent verify-animation --help
usage: animation_runtime_verify.py [-h] [--local-ddc LOCAL_DDC] project
Run three isolated Monolith animation acceptance probes against engine
tutorial assets.
positional arguments:
project Disposable project copy under UEAGENT_ARTIFACTS/Labs
options:
-h, --help show this help message and exit
--local-ddc LOCAL_DDC
Use an existing filesystem DDC directory on cold
launchueagent uap-lab --help
usage: ueagent [-h] [--engine ENGINE] [--min-cm MIN_CM] [--video] [--audio]
[--standalone-trace]
Build and exercise a pinned UnrealAgentPlayer in a private disposable
TestHost.
options:
-h, --help show this help message and exit
--engine ENGINE
--min-cm MIN_CM Required Pawn displacement
--video Encode a timestamped clip of the PIE game's viewport
--audio Record the PIE master submix and mux it with the game
viewport
--standalone-trace Launch a bounded -game session and collect a CPU/frame
traceueagent record --help
usage: record.py [-h] [--seconds SECONDS] [--min-fps MIN_FPS] project
Record the selected project's live PIE viewport and master mix at wall-clock
speed.
positional arguments:
project
options:
-h, --help show this help message and exit
--seconds SECONDS
--min-fps MIN_FPS Fail the run if actual captured frames fall below this
rateueagent mux --help
usage: mux.py [-h] capture audio output
Mux timestamped PIE viewport frames and the output of the game's master
submix.
positional arguments:
capture Folder containing frames.csv and video.bgra
audio Matching stereo PCM master mix
output
options:
-h, --help show this help message and exitueagent media --help
usage: ueagent [-h]
{windows,window,analyze,compare-video,record,extract,compare,check-frames}
...
Record, extract, or compare local video evidence.
positional arguments:
{windows,window,analyze,compare-video,record,extract,compare,check-frames}
windows List visible Unreal HWNDs for an exact executable
window Record a specific Windows Graphics Capture target
analyze Probe, decode, hash and sample a clip
compare-video Render two event-aligned panels with elapsed time
compare Compare two clips at matching video time offsets
check-frames Validate capture or replay engine-frame continuity
options:
-h, --help show this help message and exitueagent timeline --help
usage: timeline.py [-h] --profile PROFILE --root ROOT --run-id RUN_ID --output
OUTPUT
Index the observations and images actually present in one saved run.
options:
-h, --help show this help message and exit
--profile PROFILE
--root ROOT
--run-id RUN_ID
--output OUTPUTueagent compare --help
usage: compare_behavior.py [-h] before after
Compare two completed movement runs with identical project, profile and input
path.
positional arguments:
before
after
options:
-h, --help show this help message and exitueagent inspector --help
usage: ueagent [-h] --project PROJECT --report REPORT [--role ROLE]
--snapshot SNAPSHOT [--baseline BASELINE] [--read]
options:
-h, --help show this help message and exit
--project PROJECT
--report REPORT
--role ROLE
--snapshot SNAPSHOT
--baseline BASELINE
--readueagent windows --help
usage: ueagent [-h] --project PROJECT
options:
-h, --help show this help message and exit
--project PROJECTueagent pck --help
usage: godot_pck.py [-h] {summary,list,extract} ...
Generic read-only Godot PCK (v2/v3/v4) indexer and selective extractor.
Strictly read-only on source .pck files. Enforces path-traversal guards,
extraction byte budgets, and records SHA-256 digests for every read or
extracted entry. Contains zero game-specific hardcoding.
positional arguments:
{summary,list,extract}
summary Print JSON summary of a Godot PCK
list List entry paths matching an optional prefix or suffix
extract Selectively extract entries under a byte budget
options:
-h, --help show this help message and exitueagent hygiene --help
usage: ueagent [-h]
{package-build,package-accept,package-reject,package-status,preflight,volumes,menu,discover,audit,lfs-audit,dedup,plan,archive,verify,restore,release,migration,cache-review,runs,assets}
...
UEAgentDevKit project hygiene CLI and interactive menu.
positional arguments:
{package-build,package-accept,package-reject,package-status,preflight,volumes,menu,discover,audit,lfs-audit,dedup,plan,archive,verify,restore,release,migration,cache-review,runs,assets}
preflight Check peak incremental space before a manual build or
capture
volumes Snapshot free space on source, archive and restore
volumes
options:
-h, --help show this help message and exitueagent media record --help
usage: ueagent record [-h] --scene SCENE [--seconds SECONDS] [--port PORT]
[--exe EXE] [--pid PID] [--hwnd HWND] --run RUN
options:
-h, --help show this help message and exit
--scene SCENE
--seconds SECONDS
--port PORT
--exe EXE Verify the dedicated OBS source against this Unreal
executable
--pid PID
--hwnd HWND
--run RUNueagent media compare --help
usage: ueagent compare [-h] [--seconds SECONDS [SECONDS ...]]
[--start START] [--end END] [--interval INTERVAL]
[--before-offset BEFORE_OFFSET]
[--after-offset AFTER_OFFSET] --run RUN
before after
positional arguments:
before Clip for the left panel
after Clip for the right panel
options:
-h, --help show this help message and exit
--seconds SECONDS [SECONDS ...]
Video time offsets in seconds, in output order
--start START Time in seconds for the comparison range
--end END Time in seconds for the comparison range
--interval INTERVAL Time in seconds for the comparison range
--before-offset BEFORE_OFFSET
Seconds to add to the left video
--after-offset AFTER_OFFSET
Seconds to add to the right video
--run RUNueagent media check-frames --help
usage: ueagent check-frames [-h] [--first FIRST] [--last LAST]
[--fixed-fps FIXED_FPS]
input
positional arguments:
input
options:
-h, --help show this help message and exit
--first FIRST First sample frame, inclusive
--last LAST Last sample frame, inclusive
--fixed-fps FIXED_FPS
Check the declared simulation step in per-frame replay
JSONLueagent media windows --help
usage: ueagent windows [-h] --exe EXE
options:
-h, --help show this help message and exit
--exe EXEueagent media window --help
usage: ueagent window [-h] --exe EXE --pid PID --hwnd HWND [--fps 1..120]
[--width WIDTH]
[--encoder {libx264,h264_nvenc,h264_amf,h264_qsv}]
--seconds SECONDS --run RUN
options:
-h, --help show this help message and exit
--exe EXE
--pid PID
--hwnd HWND
--fps 1..120
--width WIDTH
--encoder {libx264,h264_nvenc,h264_amf,h264_qsv}
--seconds SECONDS
--run RUNueagent media analyze --help
usage: ueagent analyze [-h] --run RUN video
positional arguments:
video
options:
-h, --help show this help message and exit
--run RUNueagent media compare-video --help
usage: ueagent compare-video [-h] [--before-offset BEFORE_OFFSET]
[--after-offset AFTER_OFFSET]
[--labels LABELS LABELS] [--speed SPEED]
--seconds SECONDS --run RUN
before after
positional arguments:
before
after
options:
-h, --help show this help message and exit
--before-offset BEFORE_OFFSET
--after-offset AFTER_OFFSET
--labels LABELS LABELS
--speed SPEED
--seconds SECONDS Duration on the source timeline
--run RUNueagent hygiene preflight --help
usage: ueagent preflight [-h] --peak-gib PEAK_GIB path
positional arguments:
path
options:
-h, --help show this help message and exit
--peak-gib PEAK_GIBueagent hygiene volumes --help
usage: ueagent volumes [-h] paths [paths ...]
positional arguments:
paths
options:
-h, --help show this help message and exitueagent hygiene menu --help
usage: ueagent menu [-h] [target]
positional arguments:
target
options:
-h, --help show this help message and exitueagent hygiene discover --help
usage: ueagent discover [-h] [target]
positional arguments:
target
options:
-h, --help show this help message and exitueagent hygiene audit --help
usage: ueagent audit [-h] [target]
positional arguments:
target
options:
-h, --help show this help message and exitueagent hygiene lfs-audit --help
usage: ueagent lfs-audit [-h] [--verify-content] [target]
positional arguments:
target
options:
-h, --help show this help message and exit
--verify-contentueagent hygiene dedup --help
usage: ueagent dedup [-h] [target]
positional arguments:
target
options:
-h, --help show this help message and exitueagent hygiene plan --help
usage: ueagent plan [-h] target
positional arguments:
target
options:
-h, --help show this help message and exitueagent hygiene archive --help
usage: ueagent archive [-h] target
positional arguments:
target
options:
-h, --help show this help message and exitueagent hygiene verify --help
usage: ueagent verify [-h] target
positional arguments:
target
options:
-h, --help show this help message and exitueagent hygiene restore --help
usage: ueagent restore [-h] target
positional arguments:
target
options:
-h, --help show this help message and exitueagent hygiene release --help
usage: ueagent release [-h] --approve APPROVE target
positional arguments:
target
options:
-h, --help show this help message and exit
--approve APPROVEueagent hygiene migration --help
usage: ueagent migration [-h] target restored
positional arguments:
target
restored
options:
-h, --help show this help message and exitueagent hygiene cache-review --help
usage: ueagent cache-review [-h] target
positional arguments:
target
options:
-h, --help show this help message and exitueagent hygiene runs --help
usage: ueagent runs [-h]
options:
-h, --help show this help message and exitueagent hygiene assets --help
usage: ueagent assets [-h] target
positional arguments:
target
options:
-h, --help show this help message and exitueagent hygiene package-build --help
usage: ueagent package-build [-h] [--engine ENGINE] [--peak-gib PEAK_GIB]
[--timeout TIMEOUT]
project
positional arguments:
project
options:
-h, --help show this help message and exit
--engine ENGINE
--peak-gib PEAK_GIB Override the policy estimate for this build
--timeout TIMEOUTueagent hygiene package-status --help
usage: ueagent package-status [-h] project
positional arguments:
project
options:
-h, --help show this help message and exitueagent hygiene package-accept --help
usage: ueagent package-accept [-h] --evidence EVIDENCE [--pin]
project candidate
positional arguments:
project
candidate
options:
-h, --help show this help message and exit
--evidence EVIDENCE
--pinueagent hygiene package-reject --help
usage: ueagent package-reject [-h] project candidate
positional arguments:
project
candidate
options:
-h, --help show this help message and exit