Skip to content

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.

  1. Call browse_facets to 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 a pack_ids value.

    { "query": "barrel" }
  2. Call search_props with 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_prop returns the full record, and find_similar_props finds props that look like a good hit.

  3. Call get_prop_thumbnail to get the thumbnail as an image the agent can see. It works only for props with has_thumbnail: true.

  4. Call get_prop_graph with direction: "dependencies" to list everything the prop needs (materials, textures), with sizes.

  5. Call get_download_url to get a URL for the current version.

    { "entry_id": 1234 }

    If expires_at is set, fetch the URL with no Authorization header before that time. If expires_at is null, the URL is a path on https://api.prophouse.dev and needs your usual Authorization: Bearer header. Save the file as suggested_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.

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.

  1. Call checkout_prop to 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 as checkout.object_id. The lock lasts 72 hours unless you set ttl_hours (1 to 720).

    If the call fails with LOCKED, a teammate is editing the prop and details.holder names them. Do not try to work around the lock. Tell the user, or pick another prop.

  2. Download the file from the download URL in the result. The same rules apply as for get_download_url. Edit the file with your own tools.

  3. Compute the SHA-256 of the edited file as 64 lowercase hex characters, and its exact size in bytes.

  4. Call checkin_prop with 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_FACE if the prop’s current version is no longer the one you checked out. While you hold the checkout you do not need expected_face_object_id. The check-in uses your checkout’s version by default.

    For files under about 500 KB, add the bytes as file_base64 and the check-in finishes in one call. The tool rejects inline files over 700,000 bytes.

  5. For larger files the first call returns status: "upload_required" with an upload object. Upload the bytes according to upload.mode.

    • direct: PUT the raw bytes to upload.url with exactly the headers in upload.headers and no Authorization header. A 412 response means the bytes are already stored. Treat it as success.
    • server: PUT the raw bytes to upload.url, a path on https://api.prophouse.dev, with your usual Authorization: Bearer header.

    Then call checkin_prop again with the same arguments. The result is checked_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.

  1. Call list_reviews with view: "waiting_on_me" to list the rounds waiting for your response. get_review returns the details of one round.

  2. Inspect the prop with get_prop, get_prop_thumbnail and list_comments.

  3. Respond with respond_to_review. assign_to_name works only with changes_requested and 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"
    }
  4. Discuss with add_comment. Write @name in the body to notify a member. Set object_id to pin the comment to a specific version, or parent_id to 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.

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.

  1. Find the props with search_props, and check them with get_prop_thumbnail. Collect their entry_id values.

  2. If you do not know the project name, or more than one project is open, call list_unreal_editors. Its ready_projects lists the projects you can import into.

  3. Call import_to_unreal with up to 100 entry_ids.

    {
    "entry_ids": [1234, 1240, 1311],
    "project": "ColdStorage",
    "subfolder": "BreakRoom"
    }

    Without target_root, imports go to the import root set in the editor (/Game/Prophouse by default). subfolder creates a folder under that root, which keeps each scene’s props together. Pass target_root only to choose a different full /Game folder.

    The call waits up to 25 seconds for the editor to finish. If the result says done: false, call get_unreal_import with the job_id and a wait_seconds value (up to 50) until done is true.

  4. Each entry in requested has an object_path such 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 unreal
    actors = 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.