Agent workflows
These tool sequences cover most agent work. You can give them to your agent as instructions. Most agents follow them without that, because the server sends a short version of this guidance when the agent connects.
Tool arguments are shown as JSON. The tool reference documents every tool. On hosted workspaces each tool call counts against your plan’s monthly agent-call allowance, so precise filters and sensible limit values save calls. Errors and limits covers what happens when you hit a limit.
Source props and download them
Section titled “Source props and download them”-
Call
browse_facetsto see what exists. It returns packs with their ids, categories, tags, types and review states, each with counts. Use it to turn “the Medieval Village pack” into apack_idsvalue.{ "query": "barrel" } -
Call
search_propswith a plain-language description and narrow it with filters.{"query": "rusty metal barrel","types": ["mesh"],"tri_max": 5000,"limit": 10}Each row includes the pack, review state and
has_thumbnail, plus metadata such as triangle count and bounds when the prop has it. That is often enough to choose.get_propreturns the full record, andfind_similar_propsfinds props that look like a good hit. -
Call
get_prop_thumbnailto get the thumbnail as an image the agent can see. It works only for props withhas_thumbnail: true. -
Call
get_prop_graphwithdirection: "dependencies"to list everything the prop needs (materials, textures), with sizes. -
Call
get_download_urlto get a URL for the current version.{ "entry_id": 1234 }If
expires_atis set, fetch the URL with noAuthorizationheader before that time. Ifexpires_atis null, the URL is a path onhttps://api.prophouse.devand needs your usualAuthorization: Bearerheader. Save the file assuggested_filename.
To get props into an open Unreal project, skip the download and use import_to_unreal. It brings dependencies along and puts each file in the right folder.
Check out, edit, check in
Section titled “Check out, edit, check in”This loop gives an agent the same protection a person gets in the desktop app or the Unreal plugin. The lock stops anyone else from publishing over your edit, and the check-in refuses to publish over someone else’s.
-
Call
checkout_propto lock the prop and get the version to start from.{ "entry_id": 1234, "note": "Reducing tri count for mobile" }The lock records the version you checked out as
lock.base_object_id, the same value ascheckout.object_id. The lock lasts 72 hours unless you setttl_hours(1 to 720).If the call fails with
LOCKED, a teammate is editing the prop anddetails.holdernames them. Do not try to work around the lock. Tell the user, or pick another prop. -
Download the file from the
downloadURL in the result. The same rules apply as forget_download_url. Edit the file with your own tools. -
Compute the SHA-256 of the edited file as 64 lowercase hex characters, and its exact size in bytes.
-
Call
checkin_propwith the hash and the size.{"entry_id": 1234,"content_hash": "<64-hex-sha256>","blob_size": 482113,"release_lock": true}The check-in fails with
STALE_FACEif the prop’s current version is no longer the one you checked out. While you hold the checkout you do not needexpected_face_object_id. The check-in uses your checkout’s version by default.For files under about 500 KB, add the bytes as
file_base64and the check-in finishes in one call. The tool rejects inline files over 700,000 bytes. -
For larger files the first call returns
status: "upload_required"with anuploadobject. Upload the bytes according toupload.mode.direct:PUTthe raw bytes toupload.urlwith exactly the headers inupload.headersand noAuthorizationheader. A412response means the bytes are already stored. Treat it as success.server:PUTthe raw bytes toupload.url, a path onhttps://api.prophouse.dev, with your usualAuthorization: Bearerheader.
Then call
checkin_propagain with the same arguments. The result ischecked_in.
A check-in can also end in one of these outcomes.
| Outcome | What it means | What to do |
|---|---|---|
no_change |
The file is byte-identical to a version that already exists. Nothing was published. | Nothing. |
decision_required |
The file looks like a new version of an existing prop that lost its link to it. | Call again with attach_to_lineage set to the returned candidate_lineage_id, or with force_new_lineage: true to keep it separate. Ask the user if you are unsure. |
STALE_FACE error |
Someone published or restored a different version after you checked out. | Do not retry. Call release_checkout, then checkout_prop to start from the current version. Reapply your change and check in again. |
Calling checkout_prop again without releasing first refreshes the lock and keeps your original baseline. If someone else moved the prop to a different version in the meantime, the result carries a warning, and the next check-in will fail with STALE_FACE.
To abandon an edit, call release_checkout with the entry_id. To register a new prop instead of versioning an existing one, pass new_entry instead of entry_id, for example {"name": "SM_Crate_Small", "entry_type": "mesh"}. Add pack_name to put it in a pack. Prophouse creates the pack if it does not exist.
Work the review queue
Section titled “Work the review queue”-
Call
list_reviewswithview: "waiting_on_me"to list the rounds waiting for your response.get_reviewreturns the details of one round. -
Inspect the prop with
get_prop,get_prop_thumbnailandlist_comments. -
Respond with
respond_to_review.assign_to_nameworks only withchanges_requestedand names the member who should make the fixes.{"request_id": 42,"response": "changes_requested","note": "Pivot is off-center; please fix before approval.","assign_to_name": "sam"} -
Discuss with
add_comment. Write@namein the body to notify a member. Setobject_idto pin the comment to a specific version, orparent_idto reply to a top-level comment.
To start a round, call request_review with the entry_id and at least one reviewer in reviewer_names or reviewer_ids. get_notifications is the agent’s inbox, and mark_notifications_read clears handled items. Reviews explains how review rounds work.
Build an environment in Unreal
Section titled “Build an environment in Unreal”An agent can dress a level from your library. It finds props, imports them into the Unreal project you have open, then places them with an editor-side tool. This needs one-time setup in the editor, described in Import props into Unreal.
-
Find the props with
search_props, and check them withget_prop_thumbnail. Collect theirentry_idvalues. -
If you do not know the project name, or more than one project is open, call
list_unreal_editors. Itsready_projectslists the projects you can import into. -
Call
import_to_unrealwith up to 100entry_ids.{"entry_ids": [1234, 1240, 1311],"project": "ColdStorage","subfolder": "BreakRoom"}Without
target_root, imports go to the import root set in the editor (/Game/Prophouseby default).subfoldercreates a folder under that root, which keeps each scene’s props together. Passtarget_rootonly to choose a different full/Gamefolder.The call waits up to 25 seconds for the editor to finish. If the result says
done: false, callget_unreal_importwith thejob_idand await_secondsvalue (up to 50) untildoneistrue. -
Each entry in
requestedhas anobject_pathsuch as/Game/Prophouse/BreakRoom/Meshes/SM_Crate.SM_Crate. Spawn those in the level with a tool that controls the editor, such as an Unreal MCP server or the editor’s Python API.import unrealactors = unreal.get_editor_subsystem(unreal.EditorActorSubsystem)asset = unreal.load_asset("/Game/Prophouse/BreakRoom/Meshes/SM_Crate.SM_Crate")actors.spawn_actor_from_object(asset, unreal.Vector(0, 0, 0))
An import never overwrites an asset that already exists in the project with different content. The result lists it under kept_local, and its object_path points at your local copy.
Prophouse’s tools get the files into the project. Placing, moving and arranging actors is the job of the editor-side tool.
