Import props into Unreal
With agent imports turned on, an agent can ask Prophouse to import props into the Unreal project you have open. Your editor picks up the request and imports the props with everything they depend on, such as materials and textures. The agent gets back the /Game object paths to spawn in the level. No dialog opens in your editor, and an import never replaces an asset you have changed.
This page covers the MCP tools. For the editor side, see Agent imports.
Requirements
Section titled “Requirements”- The Prophouse Unreal plugin is installed, and the project is open in the editor.
- The plugin is signed in as the same Prophouse member who created the agent’s API key. An agent only drives editors signed in as its own member, never a teammate’s.
- Accept agent imports is turned on in that editor. It is off by default.
- The Prophouse desktop app is installed on the same machine. The plugin transfers files through it and starts it when needed.
- The agent’s API key has
writescope.list_unreal_editorsandget_unreal_importonly needread.
Turn on agent imports
Section titled “Turn on agent imports”-
In Unreal, open Editor Preferences and go to Plugins → Prophouse.
-
Under Agent imports, check Accept agent imports.
-
Optionally, under Pull, set Default Destination Root to the folder imports should land in. It defaults to
/Game/Prophouse.
The setting is per project and per user. While it is on, the editor checks in with Prophouse every 15 seconds and runs any import an agent queued for this project. While it is off, the editor still checks in as long as Enable background polling is on, at the poll interval or every 60 seconds, whichever is longer. The agent can then see the editor and tell you to turn the setting on.
Agents name the project by the plugin’s Project Key (blank = .uproject name) setting. When that is blank, the name is the .uproject name. Matching ignores case.
How an import runs
Section titled “How an import runs”-
The agent calls
import_to_unrealwithentry_ids. Prophouse first checks that a ready editor exists for the project. If none does, the call fails at once with an error that says what to fix. -
Prophouse queues an import job for that project. Your editor picks it up on its next check-in, within about 15 seconds.
-
The editor imports the props and their dependencies with the same pipeline as a pull you start from the plugin. It shows a notification when the import starts and when it finishes or fails.
-
import_to_unrealwaits up towait_secondsfor the job to finish and returns the import view. If the job is still running, the agent callsget_unreal_importwith thejob_iduntildoneistrue. -
The agent spawns each
requested[].object_pathwith an editor-side tool, such as an Unreal MCP server or the editor’s Python API.
import_to_unreal arguments
Section titled “import_to_unreal arguments”| Argument | Type | Description |
|---|---|---|
entry_ids |
integer array, required | Prop ids from search_props or get_prop. 1 to 100 ids. Duplicates are ignored. |
project |
string | Unreal project name, case-insensitive. Optional when editors are open on only one project. |
target_root |
string | Full destination folder under /Game, for example /Game/Props, used as given. Defaults to the editor’s Default Destination Root. |
subfolder |
string | Folder to create under the import root, for example BreakRoom or BreakRoom/Dressing. With the default root, BreakRoom lands in /Game/Prophouse/BreakRoom. |
wait_seconds |
integer | How long to wait for the job to finish, 0 to 50. Default 25. |
target_root and subfolder segments may contain only ASCII letters, digits, underscores and hyphens. subfolder is relative, so a value that starts with /Game fails with VALIDATION. Pass a full path as target_root instead.
Check editors with list_unreal_editors
Section titled “Check editors with list_unreal_editors”list_unreal_editors takes no arguments. It lists every editor signed in as you that checked in within the last 24 hours. For each one it reports the project, engine and plugin version, machine, default destination root, whether it is online, whether it is ready for agent imports, and problems.
An editor is ready when it is online, accepts agent imports, and can reach the desktop app. Each problem is an object with a code, a message and a fix:
| Code | Meaning | Fix |
|---|---|---|
EDITOR_OFFLINE |
The editor has not checked in recently, or was closed. | Open the project in Unreal with the plugin signed in. It checks in within seconds. |
AGENT_IMPORTS_DISABLED |
The editor is open, but Accept agent imports is off. | Turn on Accept agent imports in that editor. |
DESKTOP_AGENT_UNAVAILABLE |
The editor cannot reach the Prophouse desktop app, which it uses to transfer files. The message includes the editor’s last error when there is one. | Install or start the desktop app on that machine. |
EDITOR_BUSY |
The editor is running another import. The editor is still ready. | Nothing. New imports queue behind the running one. |
The result also has ready_projects, the projects you can import into right now. When no editor has checked in, or none is ready, hint explains what to set up.
Preflight errors
Section titled “Preflight errors”import_to_unreal returns these as tool errors before it queues anything. None succeeds on a plain retry. details.fix says what to change.
| Code | Meaning | Fix |
|---|---|---|
UNREAL_NOT_CONNECTED |
No editor signed in as this member has checked in within 24 hours. | Install or update the plugin, open the project, sign in as the member who owns the API key, and turn on Accept agent imports. |
UNREAL_PROJECT_NOT_OPEN |
You passed project, and no editor has checked in with that project within 24 hours. |
Open it, or use a name from details.open_projects (open now) or details.recent_projects. |
UNREAL_PROJECT_AMBIGUOUS |
You left out project, and editors are open on more than one project. |
Pass project with one of details.projects. |
UNREAL_EDITOR_OFFLINE |
The project’s editor is not online. details.last_seen_at says when it last checked in. |
Open the project in Unreal with the plugin signed in, then retry. |
AGENT_IMPORTS_DISABLED |
The editor is online but does not accept agent imports. | Turn on Accept agent imports in that editor, then retry. |
DESKTOP_AGENT_UNAVAILABLE |
The editor cannot reach the desktop app. details.last_error has the editor’s last error. |
Install or start the desktop app on that machine, then retry. |
Errors from creating the job come back unchanged. Examples are ENTRY_NOT_FOUND for an unknown prop id and VALIDATION for a bad target_root or subfolder.
Every editor on the project that accepts agent imports gets the job on its next check-in, and the first one to claim it runs it. When the agent leaves out target_root, Prophouse uses the Default Destination Root of one of those editors and prefers an editor that is not busy.
The import view
Section titled “The import view”import_to_unreal, get_unreal_import and cancel_unreal_import all return the same shape:
{ "job_id": 12, "project": "ColdStorage", "target_root": "/Game/Prophouse", "status": "done", "phase": "imported", "done": true, "requested": [ { "entry_id": 5, "name": "SM_Crate", "object_path": "/Game/Prophouse/Meshes/SM_Crate.SM_Crate" } ], "imported": [ { "asset_name": "SM_Crate", "package": "/Game/Prophouse/Meshes/SM_Crate", "object_path": "/Game/Prophouse/Meshes/SM_Crate.SM_Crate", "action": "add" } ], "unchanged": [], "kept_local": [], "failed_items": [], "failure_reason": null, "problem": null, "next_step": "Spawn requested[].object_path in the level."}| Field | Meaning |
|---|---|
phase |
waiting_for_editor (queued), importing, imported, failed or cancelled. status holds the underlying job status. |
done |
true once the job is imported, failed or cancelled. Stop polling then. |
requested |
One row per prop you asked for. object_path is null until the job is done, and stays null for a prop that was not placed. These are the paths to spawn. |
imported |
Assets this import wrote to the project, including dependencies. action is add for a new asset, or safe_overwrite when it replaced an older version that Prophouse placed and you had not changed. |
unchanged |
Assets already in the project and up to date. |
kept_local |
Assets that already existed in the project with different content. Your local file was kept. |
failed_items |
Assets that could not be imported, each with an error. |
failure_reason |
Why the whole job failed, when it did. |
problem |
{code, message, fix} when the job is stuck or failed. See Waiting and stuck jobs. |
next_step |
An instruction for what to do now. |
An object path is the package path plus the asset name, for example /Game/Prophouse/Meshes/SM_Crate.SM_Crate. Use the paths Prophouse returns. Do not build them from the prop name. When a name is already taken in the folder, the imported package gets a suffix.
Conflicts keep your local files
Section titled “Conflicts keep your local files”An agent import never replaces an asset you have changed. If an asset at the destination has different content, the import keeps your version and lists it under kept_local. The matching requested[].object_path then points at your local asset. To get the library version, move or rename the local asset and import again, or pull the prop from the plugin yourself.
The import does replace an asset when Prophouse placed it earlier and nobody has changed it since. That asset shows up in imported with action set to safe_overwrite.
Waiting and stuck jobs
Section titled “Waiting and stuck jobs”Pass wait_seconds (up to 50) to import_to_unreal or get_unreal_import to block until the job finishes. get_unreal_import waits 0 seconds by default. A large import can outlast one call, so keep calling get_unreal_import with wait_seconds while done is false. Each call counts as one agent call.
While a job is not finished, problem explains what is holding it up:
| Code | Meaning | Fix |
|---|---|---|
EDITOR_OFFLINE |
The job is queued, and no editor for the project is online. | Open the project. The job runs when the editor reconnects. Call cancel_unreal_import to give up on it. |
AGENT_IMPORTS_DISABLED |
The editor is online but does not accept agent imports. | Turn on Accept agent imports. The job then runs. |
DESKTOP_AGENT_UNAVAILABLE |
The editor cannot reach the desktop app. | Install or start the desktop app on that machine. |
EDITOR_NOT_PICKING_UP |
A ready, idle editor has not picked the job up after three check-ins plus 15 seconds (at least 45 seconds). The message includes the editor’s last error when there is one. | Check the Unreal Output Log for the LogProphouse category. |
EDITOR_STALLED |
The import has made no progress for 3 minutes. | Check the Unreal Output Log for the LogProphouse category. |
EDITOR_OFFLINE_MID_IMPORT |
The editor went offline during the import, and the import has made no progress for 3 minutes. | Nothing right away. The import resumes the next time the editor starts, or goes back in the queue after 60 minutes. |
IMPORT_FAILED |
The editor could not finish the job. failure_reason says why. |
Fix the cause, then call import_to_unreal again. |
A job waiting behind another import in a busy editor has no problem. Its next_step names the job it is waiting on.
Cancel an import
Section titled “Cancel an import”cancel_unreal_import takes a job_id and cancels a job that is still waiting_for_editor. Once the editor has picked the job up, the call fails with JOB_STATE. Cancelling a job that is already cancelled returns its view and changes nothing.
