ue-mcp 1.4.13 → 1.4.14-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/README.md +5 -5
  2. package/dist/bridge/bridge-timeouts.js +4 -0
  3. package/dist/bridge/bridge-timeouts.js.map +1 -1
  4. package/dist/cli/cli-commands.js +1 -0
  5. package/dist/cli/cli-commands.js.map +1 -1
  6. package/dist/cli/doctor.js +2 -1
  7. package/dist/cli/doctor.js.map +1 -1
  8. package/dist/cli/init.js +1 -1
  9. package/dist/cli/init.js.map +1 -1
  10. package/dist/cli/projects-cli.d.ts +3 -0
  11. package/dist/cli/projects-cli.js +72 -0
  12. package/dist/cli/projects-cli.js.map +1 -0
  13. package/dist/config/user-state.d.ts +10 -0
  14. package/dist/config/user-state.js +21 -0
  15. package/dist/config/user-state.js.map +1 -1
  16. package/dist/core/env.d.ts +2 -0
  17. package/dist/core/env.js +2 -0
  18. package/dist/core/env.js.map +1 -1
  19. package/dist/core/types.d.ts +27 -0
  20. package/dist/daemon/daemon.js +44 -5
  21. package/dist/daemon/daemon.js.map +1 -1
  22. package/dist/daemon/extension-api.d.ts +8 -5
  23. package/dist/daemon-api.d.ts +2 -1
  24. package/dist/daemon-api.js +1 -0
  25. package/dist/daemon-api.js.map +1 -1
  26. package/dist/dispatch/offline.js +1 -0
  27. package/dist/dispatch/offline.js.map +1 -1
  28. package/dist/editor/dialog-guard.d.ts +12 -2
  29. package/dist/editor/dialog-guard.js +68 -2
  30. package/dist/editor/dialog-guard.js.map +1 -1
  31. package/dist/editor/editor-control.js +1 -1
  32. package/dist/editor/editor-control.js.map +1 -1
  33. package/dist/flow/write-methods.js +1 -1
  34. package/dist/flow/write-methods.js.map +1 -1
  35. package/dist/machine/projects.d.ts +85 -0
  36. package/dist/machine/projects.js +286 -0
  37. package/dist/machine/projects.js.map +1 -0
  38. package/dist/pie/script-events.d.ts +4 -1
  39. package/dist/pie/script-events.js.map +1 -1
  40. package/dist/surface/context/instructions.js +20 -0
  41. package/dist/surface/context/instructions.js.map +1 -1
  42. package/dist/tool-counts.json +12 -12
  43. package/dist/tools/asset.js +2 -1
  44. package/dist/tools/asset.js.map +1 -1
  45. package/dist/tools/editor.js +1 -1
  46. package/dist/tools/editor.js.map +1 -1
  47. package/dist/tools/epic/effects.js +11 -0
  48. package/dist/tools/epic/effects.js.map +1 -1
  49. package/dist/tools/epic/fab.generated.d.ts +6 -0
  50. package/dist/tools/epic/fab.generated.js +67 -0
  51. package/dist/tools/epic/fab.generated.js.map +1 -0
  52. package/dist/tools/epic/index.d.ts +2 -0
  53. package/dist/tools/epic/index.js +2 -0
  54. package/dist/tools/epic/index.js.map +1 -1
  55. package/dist/tools/epic/toolset-routes.js +2 -0
  56. package/dist/tools/epic/toolset-routes.js.map +1 -1
  57. package/dist/tools/epic.js +4 -4
  58. package/dist/tools/epic.js.map +1 -1
  59. package/dist/tools/fab-epic.d.ts +23 -0
  60. package/dist/tools/fab-epic.js +109 -0
  61. package/dist/tools/fab-epic.js.map +1 -0
  62. package/dist/tools/fab.js +27 -18
  63. package/dist/tools/fab.js.map +1 -1
  64. package/dist/tools/level.js +9 -2
  65. package/dist/tools/level.js.map +1 -1
  66. package/dist/tools/material.js +1 -1
  67. package/dist/tools/material.js.map +1 -1
  68. package/dist/tools/pie.js +1 -1
  69. package/dist/tools/pie.js.map +1 -1
  70. package/dist/tools/specs/asset.generated.js +92 -3
  71. package/dist/tools/specs/asset.generated.js.map +1 -1
  72. package/dist/tools/specs/fab.generated.js +143 -3
  73. package/dist/tools/specs/fab.generated.js.map +1 -1
  74. package/dist/tools/specs/level.generated.js +183 -9
  75. package/dist/tools/specs/level.generated.js.map +1 -1
  76. package/dist/tools/specs/pie.generated.js +28 -8
  77. package/dist/tools/specs/pie.generated.js.map +1 -1
  78. package/dist/tools/specs/widget.generated.js +8 -1
  79. package/dist/tools/specs/widget.generated.js.map +1 -1
  80. package/dist/ue-mcp.default.yml +522 -76
  81. package/package.json +2 -2
  82. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/BridgeServer.cpp +26 -0
  83. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Asset/AssetHandlers.cpp +24 -0
  84. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Asset/AssetHandlers.h +7 -0
  85. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Asset/AssetHandlers_Mesh.cpp +483 -10
  86. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Dialog/DialogHandlers.cpp +345 -1
  87. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Epic/EpicHandlers_AIAssistant.cpp +34 -6
  88. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Fab/FabDownloads.cpp +766 -0
  89. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Fab/FabDownloads.h +26 -0
  90. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Fab/FabHandlers.cpp +159 -55
  91. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Fab/FabHandlers.h +23 -12
  92. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Fab/FabLibrary.cpp +306 -0
  93. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Fab/FabLibrary.h +55 -0
  94. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Level/LevelHandlers.cpp +34 -2
  95. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Level/LevelHandlers.h +9 -0
  96. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Level/LevelHandlers_Blockout.cpp +12 -8
  97. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Level/LevelHandlers_PerfAudit.cpp +3 -1
  98. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Level/LevelHandlers_Refresh.cpp +479 -0
  99. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Level/LevelHandlers_ReplaceActors.cpp +2 -0
  100. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Level/LevelHandlers_WorldPartition.cpp +824 -12
  101. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Material/MaterialHandlers.cpp +95 -1
  102. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PCG/PCGHandlers.cpp +13 -0
  103. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PIE/MCPPIETestScript.h +8 -3
  104. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PIE/PIEHandlers.cpp +2 -0
  105. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PIE/PIEHandlers_Record.cpp +6 -0
  106. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PIE/PIEHandlers_Replay.cpp +1 -0
  107. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PIE/PIEHandlers_Script.cpp +2 -2
  108. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PIE/PIEInputRecorder.cpp +52 -1
  109. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PIE/PIEInputRecorder.h +16 -0
  110. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PIE/PIEInputReplayer.cpp +65 -1
  111. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PIE/PIEInputReplayer.h +15 -0
  112. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PIE/PIEReplayInputLock.cpp +146 -0
  113. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PIE/PIEReplayInputLock.h +53 -0
  114. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PIE/PIEScriptRunner.cpp +351 -14
  115. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PIE/PIEScriptRunner.h +55 -6
  116. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PIE/PIEScriptValidation.cpp +8 -1
  117. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PIE/PIESequenceFormat.cpp +59 -0
  118. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PIE/PIESequenceFormat.h +15 -2
  119. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PIE/PIEUIPointer.cpp +567 -0
  120. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PIE/PIEUIPointer.h +173 -0
  121. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/PIE/SMCPPIEStudioPanel.cpp +41 -6
  122. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Handlers/Widget/WidgetHandlers.cpp +92 -32
  123. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Tests/FabDownloadTests.cpp +140 -0
  124. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Tests/FabEndToEndTests.cpp +365 -0
  125. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Tests/FabLibraryTests.cpp +52 -0
  126. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Tests/PCGGraphAuthoringTests.cpp +5 -2
  127. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Tests/PIEReplayInputLockTests.cpp +77 -0
  128. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Tests/PIEScriptTests.cpp +256 -0
  129. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Tests/PIEScriptValidationTests.cpp +18 -0
  130. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/Tests/PIEUIPointerTests.cpp +246 -0
  131. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/Private/UE_MCP_Bridge.cpp +4 -0
  132. package/plugin/ue_mcp_bridge/Source/UE_MCP_Bridge/UE_MCP_Bridge.Build.cs +85 -13
  133. package/plugin/ue_mcp_bridge/Source/UE_MCP_BridgeRuntime/Private/MCPPIEActionTrigger.cpp +48 -0
  134. package/plugin/ue_mcp_bridge/Source/UE_MCP_BridgeRuntime/Private/MCPPIERemoteControl.cpp +93 -0
  135. package/plugin/ue_mcp_bridge/Source/UE_MCP_BridgeRuntime/Public/MCPPIEActionTrigger.h +52 -0
  136. package/plugin/ue_mcp_bridge/Source/UE_MCP_BridgeRuntime/Public/MCPPIERemoteControl.h +54 -0
  137. package/plugin/ue_mcp_bridge/UE_MCP_Bridge.uplugin +2 -2
@@ -0,0 +1,67 @@
1
+ // GENERATED FILE - do not edit.
2
+ //
3
+ // Written by scripts/generate-epic-actions.mjs from tests/golden/epic-catalog/
4
+ // and src/tools/epic/effects.ts. To change what an action DOES, edit the
5
+ // effects file and regenerate; to pick up a new engine's toolsets, re-record
6
+ // the catalog and regenerate.
7
+ //
8
+ // These are ordinary actions. They carry a declared effect, real parameters and
9
+ // a Params: clause, they are in ALL_TOOLS, and they dispatch through the same
10
+ // task factory, guards and locks as every hand-written action in this package.
11
+ // Each also carries its input schema, which the compact signatures read (#1172).
12
+ import { z } from "zod";
13
+ import { bp } from "../../surface/category-tool.js";
14
+ const S_epic_fab_sign_in = { "properties": {} };
15
+ const S_epic_get_fab_listing_details = { "properties": { "listingId": { "type": "string" } }, "required": ["listingId"] };
16
+ const S_epic_install_fab_listing = { "properties": { "listingId": { "type": "string" }, "assetFormat": { "type": "string" }, "engineVersion": { "type": "string" }, "distributionMethod": { "type": "string" }, "title": { "type": "string" }, "fileId": { "type": "string" } }, "required": ["listingId", "assetFormat"] };
17
+ const S_epic_search_fab_listings = { "properties": { "keywords": { "type": "string" }, "sortBy": { "type": "string" }, "bFreeOnly": { "type": "boolean" }, "assetFormats": { "type": "string" }, "count": { "type": "integer" }, "cursor": { "type": "string" }, "listingTypes": { "type": "string" }, "categories": { "type": "string" }, "sellers": { "type": "string" }, "excludedSellers": { "type": "string" }, "licenses": { "type": "string" } } };
18
+ const S_epic_search_fab_my_library = { "properties": { "keywords": { "type": "string" }, "assetFormats": { "type": "string" }, "sortBy": { "type": "string" }, "count": { "type": "integer" }, "cursor": { "type": "string" }, "listingTypes": { "type": "string" }, "categories": { "type": "string" }, "sellers": { "type": "string" }, "excludedSellers": { "type": "string" }, "licenses": { "type": "string" } } };
19
+ /** 5 wrapped engine tools routed to the `fab` category. */
20
+ export const actions = {
21
+ epic_fab_sign_in: {
22
+ epicSchema: S_epic_fab_sign_in,
23
+ epicTool: { toolset: "FabToolset.FabToolset", name: "FabToolset.FabToolset.FabSignIn", engines: ["5.9"] },
24
+ ...bp("mutate", "[Epic FabToolset.FabToolset] Starts Fab sign-in by opening the Epic account portal in the user's system browser. Only needed when another tool reports that nobody is signed in. Sign-in normally persists across editor restarts, so this is usually a one-time step per machine. This does NOT wait for the user to finish. It returns as soon as the browser has been asked to open, with status \"browser-opened\". Tell the user a browser window has opened and they need to complete sign-in there. Do NOT claim they are signed in - call search_fab_my_library afterwards to find out. Available on UE 5.9; absent from UE 5.8. Params: none", "epic_call_tool"),
25
+ },
26
+ epic_get_fab_listing_details: {
27
+ epicSchema: S_epic_get_fab_listing_details,
28
+ epicTool: { toolset: "FabToolset.FabToolset", name: "FabToolset.FabToolset.GetFabListingDetails", engines: ["5.9"] },
29
+ ...bp("read", "[Epic FabToolset.FabToolset] Reads the full details of one Fab listing: description, tags, licenses and their prices, rating. Use this after search_fab_listings or search_fab_my_library, when the user asks what something actually is or does, or what it costs. The listingId comes from one of those results. Reports description (possibly shortened - descriptionTruncated says so), tags, licenses, assetFormats, free, limitedTimeFree, freeUntil, rating, publishedAt, fabUrl, and mature when it is 18+ content. Each license carries name, licenseId and free and, when Fab prices it, price and priceCurrency - with discountedPrice, discountPercentage, effectiveDiscountPercentage, lowestPriorPrice and discountEndDate during a sale. Rules for reporting this: - Describe what a listing contains only from its description and tags. Never add content they do not name, even when the title or seller suggests it. When descriptionTruncated is true, say the rest was not read rather than guessing at it. - These tools return no images: a search result's thumbnailUrl is a link you have not seen. If you do see a listing's images and they show something the description does not name, tell the user it appears in the images but not in the description, rather than stating it as part of the listing. - limitedTimeFree true means one of its licenses has a discountedPrice of 0 until freeUntil (UTC). free stays false. That license's price is its price without the discount. To install such a listing, the user must first add it to their library from fabUrl, while it is free; then install it from search_fab_my_library. Do not call install_fab_listing for it before that. - It does NOT report supported engine versions. If the user asks about compatibility, read engineVersions from the search_fab_listings result instead. Do not say the listing supports no engine versions, and do not guess. - It does not report ownership either. Use search_fab_my_library for that. - aiTrainingForbidden true means the seller forbids using it to train AI models. Refer to https:www.fab.com/eula and section \"Content that May Not be Used As Training Input Into Generative AI Programs.\" in there for more information about this restriction. - Prices are per license, in the user's Fab account currency, as the Fab website shows them. Fab may add VAT or other tax at checkout in some regions, so do not say whether a price includes tax. Say which license a price is for, and quote it with its priceCurrency. free at the top level means at least one license costs nothing. - A license with free false and no price is one Fab did not price: nobody is signed in, or Fab could not price it. Send the user to fabUrl for the price; do not retry. - During a sale, discountedPrice is what the user pays until discountEndDate. lowestPriorPrice is the lowest price in the 30 days before the sale, and effectiveDiscountPercentage the discount measured from it rather than from price. - fabUrl is the listing's page. Give it, copied exactly, whenever you name the listing. Never build one from listingId; when fabUrl is absent, give no link. - A \"no such listing\" failure can also mean the listing is no longer public, so do not tell the user it never existed. Available on UE 5.9; absent from UE 5.8. Params: listingId", "epic_call_tool"),
30
+ },
31
+ epic_install_fab_listing: {
32
+ epicSchema: S_epic_install_fab_listing,
33
+ epicTool: { toolset: "FabToolset.FabToolset", name: "FabToolset.FabToolset.InstallFabListing", engines: ["5.9"] },
34
+ ...bp("mutate", "[Epic FabToolset.FabToolset] Installs a Fab asset into the running editor: one the user owns, or a free one. Returns JSON: { listingId, assetFormat, title, status, message }. \"handed-to-editor\" adds kind, and engineVersion when one was used; \"choose-file\" adds files, each { fileId, fileName }. Which search result to install from: - Something the user owns: its search_fab_my_library result. - A free listing (free true) the user does not own: its search_fab_listings result. Free content installs straight into the project in every format, unreal-engine included. Do NOT ask the user to add it to their library first. - The one exception is a listing with limitedTimeFree true in get_fab_listing_details that is not in the user's library. It does not install, in any format, until the user adds it to their library on Fab. Tell them to do that first, from its fabUrl, then install it from search_fab_my_library. You cannot add anything to the library yourself. - Anything else needs a license first, which the user gets on Fab from its fabUrl. Installs these formats: unreal-engine (asset packs and code plugins), glb, gltf, fbx, converted-files and metahuman. Pass listingId and title from that result, and the fields of one of its installOptions - assetFormat always, engineVersion and distributionMethod when the option has them - exactly as returned. Values are checked for form, not for where they came from: a missing required value, a malformed one or an engineVersion newer than this editor is rejected, but any other valid value is used as given, so an edited one installs something other than the option the user saw. Pass title as well: the editor's download notification shows it, and glb, gltf, fbx and converted-files are imported into a folder named after it. CRITICAL - this is fire-and-forget. status is \"handed-to-editor\", \"already-in-progress\" or \"choose-file\", NEVER \"installed\". A successful result means a download is running, not that the asset is imported and usable. Tell the user the download has begun and that progress appears in the editor. Do NOT tell them it is ready, and do not offer to place or use the asset immediately afterwards. kind says what was started, and the two finish differently: - \"content\" imports into the project on its own. - \"plugin\" installs into the project's Plugins directory and then stops. The editor asks to restart, and the plugin does nothing until the user accepts. Warn them about the restart prompt when you report a plugin install, and do not claim the plugin is available. \"choose-file\" means the format has several files - often quality levels or variants - and nothing was downloaded. Show the user the fileName of each, ask which they want, and call this again with the same arguments plus that file's fileId. Do not pick one yourself unless the user already said which. \"already-in-progress\" means this asset was already downloading, from an earlier call or from the Fab tab, and this call started nothing. Say so rather than reporting a fresh download, and do not call this again for the same asset. Failure cases worth relaying accurately: - \"you don't appear to own a license to this\" means exactly that. Fab reports an unowned asset much the same way it reports a missing one, so do NOT tell the user the asset does not exist. - When a free listing the user does not own is refused - \"you don't appear to own a license to this\" or \"no such download\" - Fab serves it only to accounts that have it in their library. Give the user its fabUrl to add it there, then install it from search_fab_my_library. - if it reports that nobody is signed in, call fab_sign_in and then try again. - a refusal naming an EULA - the Fab EULA, or the UEM EULA for a Legacy UEM listing - means the signed-in Fab account has not accepted it. Tell the user they need to read and accept that EULA, which governs the use of this asset, and give its link. They accept it for their Fab account; it cannot be accepted from here. Never say it was accepted, and do not retry the install until the user says they have accepted it. Available on UE 5.9; absent from UE 5.8. Params: listingId, assetFormat, engineVersion?, distributionMethod?, title?, fileId?", "epic_call_tool"),
35
+ },
36
+ epic_search_fab_listings: {
37
+ epicSchema: S_epic_search_fab_listings,
38
+ epicTool: { toolset: "FabToolset.FabToolset", name: "FabToolset.FabToolset.SearchFabListings", engines: ["5.9"] },
39
+ ...bp("read", "[Epic FabToolset.FabToolset] Searches the whole Fab marketplace, as JSON: { query, results: [...], nextCursor }. Use this when the user wants to find or buy something: \"is there a X on Fab\", \"find me a medieval village pack\", \"what environment packs are there\". To search what they already have, use search_fab_my_library, which reads their library directly. Each result carries listingId, title, seller, sellerId, listingType, fabUrl, free, rating, licenses (each a name and licenseId), assetFormats, installOptions, engineVersions, distributionMethod, and mature when it is 18+ content. Pass listingId to get_fab_listing_details for the full description and each license's price. fabUrl is the listing's page on Fab. Rules for reporting these results: - Give every listing you name with its fabUrl, copied exactly. Never build one from listingId; when a result has no fabUrl, give no link for it. - There is no description here, and a title or seller does not say what a listing contains. Do not describe its contents until get_fab_listing_details has reported them; until then, say you have not checked. - There are no prices here. free true means at least one license costs nothing; the others may not. get_fab_listing_details says which license is free and what the rest cost. - This route does not report ownership, so a hit says nothing about whether the user already owns the listing. search_fab_my_library is what answers that. - installOptions is how install_fab_listing would install the listing in this editor, one entry per format, as in search_fab_my_library. Empty means it can use none of its formats - say so when it matters to the user. - A listing with free true installs straight from this result, owned or not: pass one of its installOptions, with listingId and title, to install_fab_listing. Do not ask the user to add it to their library first. - Anything else installs only once the user owns it. Look its title up with search_fab_my_library and install from that result. - discounted true with free false can mean the listing is free only for a limited time; get_fab_listing_details says so with limitedTimeFree. Such a listing does not install from this result: the user must add it to their library first, from its fabUrl. - Only the formats install_fab_listing installs, unless you name others in AssetFormats. That is the useful default in an editor, but it means a \"nothing found\" result only rules out those formats. - engineVersions is what the listing supports. Assets commonly support older engines than the running editor and still work. - THERE IS NO TOTAL COUNT. Never say how many results Fab has. nextCursor present means more results exist; pass it back as Cursor to continue. Absent means this is the end. - rating is absent when nobody has rated the listing yet. Tell the user it has no ratings yet, the same way you report any other rating. It is not a rating of zero. - The filters take the values results report: sellerId for a seller, never the seller's name. A listing type, category or license Fab does not know fails with an error naming the filter; drop that filter or ask the user, rather than guessing another value. An unknown sellerId matches nothing, so no results can mean a wrong sellerId. - mature true marks 18+ content, and its thumbnail is blurred. Fab applies the user's mature content setting to what get_fab_listing_details returns for it. Before calling get_fab_listing_details for one, tell the user it is mature content and ask whether to continue, as the Fab website does. Respect the user's mature content setting, below, at all times while surfacing mature content. - Which mature listings appear follows the user's Fab mature content setting: Hide, Blur or Show. To change it, the user signs in on fab.com, opens User preferences (the sliders button next to Sort on a search page) and sets Mature content. An account with an age rating restriction cannot change it. Available on UE 5.9; absent from UE 5.8. Params: keywords?, sortBy?, bFreeOnly?, assetFormats?, count?, cursor?, listingTypes?, categories?, sellers?, excludedSellers?, licenses?", "epic_call_tool"),
40
+ },
41
+ epic_search_fab_my_library: {
42
+ epicSchema: S_epic_search_fab_my_library,
43
+ epicTool: { toolset: "FabToolset.FabToolset", name: "FabToolset.FabToolset.SearchFabMyLibrary", engines: ["5.9"] },
44
+ ...bp("read", "[Epic FabToolset.FabToolset] Searches everything the user has a license to on Fab, as JSON: { query, results: [...], nextCursor }. Only the formats install_fab_listing installs, unless you name others in AssetFormats: to answer a question about other formats, such as what Unity assets the user has, name them there. Use this whenever the user refers to assets they have - \"my library\", \"what I own\", \"that pack I bought\" - and before installing anything that is not free. Each result carries listingId, title, seller, sellerId, listingType, licenses, assetFormats, engineVersions, distributionMethod and installable. An installable result also carries installOptions: one entry per format this editor can install, each holding assetFormat and, where that format needs them, engineVersion and distributionMethod. To install, pick one option and pass its fields unchanged, with listingId and title, to install_fab_listing. These results carry no fabUrl. To link one, take fabUrl from get_fab_listing_details; never build a link from listingId. Rules for reporting these results: - owned is always true. These cost the user nothing further - never quote a price or offer to buy one. - When a result has several installOptions, prefer unreal-engine: it arrives as ready-made Unreal content. The others are imported through Interchange or the MetaHuman importer. If the user asked for a specific format, use that one. - installable false comes with notInstallableReason, which says what install_fab_listing lacks - no format it installs, no build for this engine, an engine installation, a complete project, a listing no longer on Fab. It is a fact about that tool, NOT about the asset: relay the reason, and do not tell the user the asset cannot be used. - distributionMethod says what installing the unreal-engine option will do, so read it before offering to install: asset_pack adds assets to the project, and code_plugin installs an editor plugin that needs an editor restart. Say which of the two it is. complete_project is a whole project, which install_fab_listing does not install. - engineVersions is what the asset supports, which is often below the running editor. That is normal: an option's engineVersion is the newest of them this editor can load. - Results are eventually consistent. Something added to the library moments ago may not appear yet, or may appear not installable because Fab does not offer its download yet. If the user just added it, or insists they own it, say it may still be syncing and suggest trying again shortly. Do not call it a download limitation. - THERE IS NO TOTAL COUNT. nextCursor present means more results; pass it back as Cursor. - The filters take the values results report: sellerId for a seller, never the seller's name. Keywords also match seller names, so to filter by a seller, search with their name first and take the sellerId of every matching seller from the results - one brand can sell under several accounts. A listing type or category Fab does not know fails with an error naming the filter; drop that filter or ask the user, rather than guessing another value. An unknown license or sellerId matches nothing, so no results can mean a wrong value. If this reports that nobody is signed in, call fab_sign_in and then try again. Available on UE 5.9; absent from UE 5.8. Params: keywords?, assetFormats?, sortBy?, count?, cursor?, listingTypes?, categories?, sellers?, excludedSellers?, licenses?", "epic_call_tool"),
45
+ },
46
+ };
47
+ /** The parameters those actions accept, declared so the MCP layer stops stripping them. */
48
+ export const schema = {
49
+ assetFormat: z.string().optional().describe("The 'assetFormat' of one of that result's installOptions: unreal-engine, glb, gltf, fbx, converted-files or metahuman. Required - it selects what downloads and…"),
50
+ assetFormats: z.string().optional().describe("Only these asset formats: \"unreal-engine\", \"glb\", \"gltf\", \"fbx\", \"converted-files\", \"metahuman\", \"unity\", \"blender\" or \"usd\". Separate several with commas. Omi…"),
51
+ bFreeOnly: z.boolean().optional().describe("True returns only listings with at least one license that costs nothing. With Licenses, only listings where each of those licenses costs nothing. Use when the…"),
52
+ categories: z.string().optional().describe("Only these Fab categories, by slug, e.g. \"environments\". Separate several with commas. Omit this to include every category."),
53
+ count: z.number().optional().describe("How many results to return, 1-24. Omit for the default of 12. Every result stays in context for the rest of the conversation, so ask for fewer when shortlistin…"),
54
+ cursor: z.string().optional().describe("The 'nextCursor' from a previous search_fab_listings result, to fetch the next page. Pass it through unchanged - it is opaque and cannot be constructed. Omit f…"),
55
+ distributionMethod: z.string().optional().describe("The 'distributionMethod' of the same option, passed through unchanged: asset_pack or code_plugin. Required for unreal-engine - it selects how the asset is inst…"),
56
+ engineVersion: z.string().optional().describe("The 'engineVersion' of the same option, passed through unchanged, e.g. \"UE_5.6\". Required when the option has one - unreal-engine always does, metahuman usuall…"),
57
+ excludedSellers: z.string().optional().describe("Leave out listings from these sellers: the 'sellerId' of a result, not the seller's name. Separate several with commas."),
58
+ fileId: z.string().optional().describe("The 'fileId' of one entry from a previous \"choose-file\" result for this listing and format, passed through unchanged. Omit on the first call, and always for un…"),
59
+ keywords: z.string().optional().describe("What to search for, e.g. \"medieval village\", \"sci-fi weapons\". Extract the nouns and adjectives from the request; do not pass a whole sentence. Omit to browse…"),
60
+ licenses: z.string().optional().describe("Only listings sold under these licenses: \"personal\" or \"professional\" (the two levels of the Fab Standard license), \"cc\" (CC0), \"cc-by\" (CC BY), \"uefn-referenc…"),
61
+ listingId: z.string().optional().describe("The 'listingId' from a search_fab_listings or search_fab_my_library result, passed through unchanged."),
62
+ listingTypes: z.string().optional().describe("Only these listing types: \"3d-model\", \"material\", \"animation\", \"sprites-and-flipbooks\", \"decal\", \"brush\", \"ui\", \"audio\", \"vfx\", \"hdri\", \"game-system\", \"game-te…"),
63
+ sellers: z.string().optional().describe("Only listings from these sellers: the 'sellerId' of a result, not the seller's name. Separate several with commas."),
64
+ sortBy: z.string().optional().describe("How to order results: \"relevance\" (default), \"newest\", \"rating\" (highest rated first) or \"title\". Fab cannot sort by price. Omit for relevance."),
65
+ title: z.string().optional().describe("The 'title' from the same result. Shown in the editor's download notification and used to name the import folder; omitting it shows the listing id there instea…"),
66
+ };
67
+ //# sourceMappingURL=fab.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fab.generated.js","sourceRoot":"","sources":["../../../src/tools/epic/fab.generated.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,EAAE;AACF,+EAA+E;AAC/E,yEAAyE;AACzE,6EAA6E;AAC7E,8BAA8B;AAC9B,EAAE;AACF,gFAAgF;AAChF,8EAA8E;AAC9E,+EAA+E;AAC/E,iFAAiF;AACjF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AAEpD,MAAM,kBAAkB,GAAG,EAAC,YAAY,EAAC,EAAE,EAAU,CAAC;AACtD,MAAM,8BAA8B,GAAG,EAAC,YAAY,EAAC,EAAC,WAAW,EAAC,EAAC,MAAM,EAAC,QAAQ,EAAC,EAAC,EAAC,UAAU,EAAC,CAAC,WAAW,CAAC,EAAU,CAAC;AACxH,MAAM,0BAA0B,GAAG,EAAC,YAAY,EAAC,EAAC,WAAW,EAAC,EAAC,MAAM,EAAC,QAAQ,EAAC,EAAC,aAAa,EAAC,EAAC,MAAM,EAAC,QAAQ,EAAC,EAAC,eAAe,EAAC,EAAC,MAAM,EAAC,QAAQ,EAAC,EAAC,oBAAoB,EAAC,EAAC,MAAM,EAAC,QAAQ,EAAC,EAAC,OAAO,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CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2KAA2K,CAAC;IACrN,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uGAAuG,CAAC;IAClJ,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yLAAyL,CAAC;IACvO,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oHAAoH,CAAC;IAC7J,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yJAAyJ,CAAC;IACjM,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kKAAkK,CAAC;CAC1M,CAAC"}
@@ -6,6 +6,7 @@ import * as conversation from "./conversation.generated.js";
6
6
  import * as dataflow from "./dataflow.generated.js";
7
7
  import * as editor from "./editor.generated.js";
8
8
  import * as epic from "./epic.generated.js";
9
+ import * as fab from "./fab.generated.js";
9
10
  import * as gameplay from "./gameplay.generated.js";
10
11
  import * as gas from "./gas.generated.js";
11
12
  import * as level from "./level.generated.js";
@@ -28,6 +29,7 @@ export declare const EPIC_CATEGORIES: {
28
29
  readonly dataflow: typeof dataflow;
29
30
  readonly editor: typeof editor;
30
31
  readonly epic: typeof epic;
32
+ readonly fab: typeof fab;
31
33
  readonly gameplay: typeof gameplay;
32
34
  readonly gas: typeof gas;
33
35
  readonly level: typeof level;
@@ -7,6 +7,7 @@ import * as conversation from "./conversation.generated.js";
7
7
  import * as dataflow from "./dataflow.generated.js";
8
8
  import * as editor from "./editor.generated.js";
9
9
  import * as epic from "./epic.generated.js";
10
+ import * as fab from "./fab.generated.js";
10
11
  import * as gameplay from "./gameplay.generated.js";
11
12
  import * as gas from "./gas.generated.js";
12
13
  import * as level from "./level.generated.js";
@@ -29,6 +30,7 @@ export const EPIC_CATEGORIES = {
29
30
  dataflow: dataflow,
30
31
  editor: editor,
31
32
  epic: epic,
33
+ fab: fab,
32
34
  gameplay: gameplay,
33
35
  gas: gas,
34
36
  level: level,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/epic/index.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,OAAO,KAAK,SAAS,MAAM,0BAA0B,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAC9C,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,0BAA0B,CAAC;AACtD,OAAO,KAAK,YAAY,MAAM,6BAA6B,CAAC;AAC5D,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,qBAAqB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,GAAG,MAAM,oBAAoB,CAAC;AAC1C,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAC9C,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAClD,OAAO,KAAK,GAAG,MAAM,oBAAoB,CAAC;AAC1C,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAClD,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAClD,OAAO,KAAK,UAAU,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAAK,cAAc,MAAM,+BAA+B,CAAC;AAChE,OAAO,KAAK,SAAS,MAAM,0BAA0B,CAAC;AACtD,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAEhD,4EAA4E;AAC5E,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,SAAS,EAAE,SAAS;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B,CAAC;AAC1C,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAClD,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAClD,OAAO,KAAK,UAAU,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAAK,cAAc,MAAM,+BAA+B,CAAC;AAChE,OAAO,KAAK,SAAS,MAAM,0BAA0B,CAAC;AACtD,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAEhD,4EAA4E;AAC5E,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,SAAS,EAAE,SAAS;IACpB,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE,KAAK;IACZ,SAAS,EAAE,SAAS;IACpB,YAAY,EAAE,YAAY;IAC1B,QAAQ,EAAE,QAAQ;IAClB,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,IAAI;IACV,GAAG,EAAE,GAAG;IACR,QAAQ,EAAE,QAAQ;IAClB,GAAG,EAAE,GAAG;IACR,KAAK,EAAE,KAAK;IACZ,QAAQ,EAAE,QAAQ;IAClB,OAAO,EAAE,OAAO;IAChB,GAAG,EAAE,GAAG;IACR,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,UAAU;IACtB,cAAc,EAAE,cAAc;IAC9B,SAAS,EAAE,SAAS;IACpB,MAAM,EAAE,MAAM;CACN,CAAC"}
@@ -4,6 +4,7 @@
4
4
  // category, emitted so the server applies the same rule at runtime.
5
5
  /** Pattern to category, first match wins. A toolset matching none belongs to `epic`. */
6
6
  export const EPIC_TOOLSET_ROUTES = [
7
+ [/(?:^|[._])fab(?!ric)/i, "fab"],
7
8
  [/levelsequence|templatesequence|sequencevalidator|deformergraph|optimus/i, "animation"],
8
9
  [/pcgeditor/i, "pcg"],
9
10
  [/environmentquery|navmesh|inputtoolset/i, "gameplay"],
@@ -58,6 +59,7 @@ export const EPIC_TOOLSETS_BY_CATEGORY = {
58
59
  dataflow: ["DataflowAgent.DataflowAgentToolset", "DataflowEditor.DataflowScriptingSubsystem"],
59
60
  editor: ["CheatsToolset.CheatsToolset", "ConsoleToolset.ConsoleToolset", "ConsoleToolset.LogsToolset", "EditorToolset.EditorAppToolset", "EditorToolset.LogsToolset", "EditorToolset.UndoHistoryToolset", "MediaToolset.MediaToolset", "PerfToolset.CsvProfilerToolset", "PerfToolset.GpuProfilerToolset", "PerfToolset.StatsToolset", "RewindDebuggerToolset.RewindDebuggerToolset", "SceneCaptureToolset.SceneCaptureToolset", "editor_toolset.toolsets.python_scripting.PythonScriptingTools"],
60
61
  epic: ["AIAssistantEditor.AIAssistantToolset", "KnowledgeBaseToolset.KnowledgeBaseTools", "ToolsetRegistry.AgentSkillToolset", "editor_toolset.toolsets.programmatic.ProgrammaticToolset"],
62
+ fab: ["FabToolset.FabToolset"],
61
63
  gameplay: ["AIModuleToolset.BehaviorTreeToolset", "AIModuleToolset.EnvironmentQueryToolset", "GameplayTagsToolset.GameplayTagsToolset", "InputToolset.InputToolset", "NavMeshToolset.NavMeshToolset", "PhysicsToolsets.PhysicsAssetToolset", "WorldConditionsToolset.WorldConditionTools", "aimodule_toolset.toolsets.behavior_tree.BehaviorTreeTools"],
62
64
  gas: ["GASToolsets.AbilitySystemInspectorToolset", "GASToolsets.AttributeSetToolset", "GASToolsets.GameplayAbilityToolset", "GASToolsets.GameplayCueToolset"],
63
65
  level: ["EditorToolset.ActorToolset", "EditorToolset.LevelToolset", "EditorToolset.PrimitiveToolset", "UnrealCanvasAnnotationsEditor.UnrealCanvasSpatialAnnotationEditorSubsystem", "UnrealCanvasAnnotationsEditor.UnrealCanvasSpatialAnnotationToolset", "editor_toolset.toolsets.actor.ActorTools", "editor_toolset.toolsets.primitive.PrimitiveTools", "editor_toolset.toolsets.scene.SceneTools"],
@@ -1 +1 @@
1
- {"version":3,"file":"toolset-routes.js","sourceRoot":"","sources":["../../../src/tools/epic/toolset-routes.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,EAAE;AACF,wEAAwE;AACx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AAC,+CAA+C,EAAC,oCAAoC,EAAC,yDAAyD,CAAC;CAC9Y,CAAC"}
@@ -9,24 +9,24 @@ import { waitForAssistant } from "./ai-assistant-wait.js";
9
9
  // here, and ue-mcp's own value (flows, plugin ecosystem, in-editor suite)
10
10
  // composes on top. Mirrors Epic's own discover-then-call pattern so the surface
11
11
  // stays tiny no matter how many toolsets ship (50+ since 5.8).
12
- export const epicTool = categoryTool("epic", "Unreal's AI Toolset Registry itself: discovery (status/list_toolsets/describe_toolset), turning toolsets off and on (get_toolset_states/set_toolset_enabled), direct dispatch (call_tool), and the registry's own meta-tooling (agent skills, programmatic tool batching). Also Epic's Unreal MCP plugin's own tools and resources (list_mcp_tools/call_mcp_tool, list_mcp_resources/read_mcp_resource). Toolsets that map to a real editor domain are NOT here - unless nativeTools withholds them, they appear as epic_* actions on that domain's category (GAS in gas, Sequencer in animation, Dataflow in dataflow, and so on), so reach for the domain tool first and use this one to introspect or call the registry directly. Requires UE 5.8+ with the ToolsetRegistry plugin enabled - call epic(status) first to check availability. The ai_assistant_* actions drive Epic's in-editor AI Assistant (UE 5.9+ with the AI Assistant plugin): send a message and get the reply, read a conversation, and read its update events; check ai_assistant_status first.", {
12
+ export const epicTool = categoryTool("epic", "Unreal's AI Toolset Registry itself: discovery (status/list_toolsets/describe_toolset), turning toolsets off and on (get_toolset_states/set_toolset_enabled), direct dispatch (call_tool), and the registry's own meta-tooling (agent skills, programmatic tool batching). Also Epic's Unreal MCP plugin's own tools and resources (list_mcp_tools/call_mcp_tool, list_mcp_resources/read_mcp_resource). Toolsets that map to a real editor domain are NOT here - unless nativeTools withholds them, they appear as epic_* actions on that domain's category (GAS in gas, Sequencer in animation, Dataflow in dataflow, and so on), so reach for the domain tool first and use this one to introspect or call the registry directly. A toolset no recorded catalog has (one a launcher plugin or a newer plugin version adds, or a newer engine's) has no epic_* action but is still listed by list_toolsets and runs through call_tool: check here before concluding the editor cannot do something. Requires UE 5.8+ with the ToolsetRegistry plugin enabled - call epic(status) first to check availability. The ai_assistant_* actions drive Epic's in-editor AI Assistant (UE 5.9+ with the AI Assistant plugin): send a message and get the reply, read a conversation, and read its update events; check ai_assistant_status first.", {
13
13
  status: specBp("read", "Report whether Epic's ToolsetRegistry is available and how many toolsets are registered. Never errors (reports available=false with a reason when the plugin is absent).", "epic_status"),
14
14
  list_toolsets: specBp("read", "List registered toolsets: name, version, description, tool names + count. Strips the verbose per-tool input/output schemas to stay small - use describe_toolset for those (or includeSchemas).", "epic_list_toolsets"),
15
15
  describe_toolset: specBp("read", "Full schema for one toolset: every tool with its input/output JSON schema.", "epic_describe_toolset"),
16
16
  get_toolset_states: specBp("read", "Every registered toolset with its enabled state, including the disabled ones list_toolsets leaves out: for each, the block and allow patterns that match its name (blockedBy, allowedBy), outsideAllowList, disabledBy (blockList, allowList or noVisibleTools) and toggledHere when set_toolset_enabled wrote its pattern. Also the registry's live blockedNames and allowedNames, the settings' copies, and the config file they are saved to. UE 5.8+ with the ToolsetRegistry plugin, Win64 editor.", "epic_get_toolset_states"),
17
17
  set_toolset_enabled: specBp("mutate", "Turn registered toolsets off or on by exact name, effective at once: a disabled toolset leaves list_toolsets and its epic_* actions, and call_tool refuses its tools. Off adds the pattern /^\\Qname\\E$/ to the registry's block list; on removes it, and adds the same pattern to a non-empty allow list that does not match. Applied to the live registry and saved to UToolsetRegistrySettings (Config/DefaultGame.ini on 5.9, DefaultEditorPerProjectUserSettings.ini on 5.8), so the next session starts the same way. Unknown names are refused with validNames; a toolset blocked by a pattern this action did not write is refused rather than edited. A toolset already in the asked state reports unchanged. Rollback restores the previous state.", "epic_set_toolset_enabled"),
18
- call_tool: specBp("unknown", "Execute a registered Epic tool exactly as its MCP server would. tool takes the qualified name from describe_toolset, e.g. GASToolsets.AttributeSetToolset.ListAttributeSets; pass the arguments as input, or as inputJson to send raw JSON. Returns the tool's JSON result; images its output schema marks (FToolsetImage) come back as MCP image content. A tool that answers later reports progress while it runs.", "epic_call_tool"),
18
+ call_tool: specBp("unknown", "Execute a registered Epic tool exactly as its MCP server would. toolset takes the qualified toolset name from list_toolsets and is required, e.g. GASToolsets.AttributeSetToolset; tool takes the tool's name from describe_toolset, bare or qualified, e.g. GASToolsets.AttributeSetToolset.ListAttributeSets; pass the arguments as input, or as inputJson to send raw JSON. Returns the tool's JSON result; images its output schema marks (FToolsetImage) come back as MCP image content. A tool that answers later reports progress while it runs.", "epic_call_tool"),
19
19
  list_mcp_tools: specBp("read", "List the tools Epic's Unreal MCP plugin serves beside the registry: legacy MCP Tool Library Blueprints (source toolLibrary) and tools other plugins register (source plugin). Its adapters onto the registry are counted, not listed, since list_toolsets covers them; includeRegistryAdapters lists them too. available=false and no tools when the plugin is not enabled.", "epic_list_mcp_tools"),
20
20
  call_mcp_tool: specBp("unknown", "Run a tool from list_mcp_tools exactly as Epic's MCP server would: input as an object, or inputJson. Text and structuredContent come back as JSON, images and audio as MCP content. A long tool reports progress, and cancelling the call reaches the tool's CancelAsync.", "epic_call_mcp_tool"),
21
21
  list_mcp_resources: specBp("read", "List the resources registered with Epic's Unreal MCP plugin: uri, name, title, description, mimeType. Empty when no provider is registered or the plugin is off. This server also serves them as MCP resources.", "epic_list_mcp_resources"),
22
22
  read_mcp_resource: specBp("read", "Read one resource from list_mcp_resources by uri: contents with its text, or its blob as base64.", "epic_read_mcp_resource"),
23
23
  ai_assistant_status: specBp("read", "Report whether Epic's AI Assistant API (UAIAssistantInstance, UE 5.9+ with the experimental AI Assistant plugin) is loaded: engineVersion, available, and when it is not, errorCode unsupported_engine_version or PLUGIN_NOT_AVAILABLE with the reason. When available, lists its UFUNCTIONs, whether the singleton exists, whether conversation updates are being recorded, and pendingRequests. Never errors.", "epic_ai_assistant_status"),
24
24
  ai_assistant_send_message: {
25
- ...specBp("mutate", "Send a user message to Epic's AI Assistant, as UAIAssistantInstance::SendTextMessageAndGetReply (reply=true, default) or SendTextMessage (reply=false). Empty conversationId starts a new conversation. Opens the assistant panel, which needs the editor's Epic sign-in to answer. Waits (default 300s) and returns state complete with reply (and conversationId, taken from the first update event when none was given) or, with reply=false, the conversationId the message was bound to; wait=false returns state pending and a requestId for get_request. A timeout fails with state timed_out and keeps the requestId. Engines before 5.9 return unsupported_engine_version.", "epic_ai_assistant_send_message"),
25
+ ...specBp("mutate", "Send a user message to Epic's AI Assistant, as UAIAssistantInstance::SendTextMessageAndGetReply (reply=true, default) or SendTextMessage (reply=false). Empty conversationId starts a new conversation. Opens the assistant panel, which needs the editor's Epic sign-in to answer. Waits (default 300s) and returns state complete with reply (and conversationId: the one the reply names, or on builds whose reply is bare text the first update event's, when none was given) or, with reply=false, the conversationId the message was bound to; wait=false returns state pending and a requestId for get_request. A timeout fails with state timed_out and keeps the requestId. Engines before 5.9 return unsupported_engine_version.", "epic_ai_assistant_send_message"),
26
26
  followUp: waitForAssistant(300),
27
27
  },
28
28
  ai_assistant_get_conversation: {
29
- ...specBp("read", "Read an AI Assistant conversation as Epic serializes it (UAIAssistantInstance::GetConversationJson): conversation is the parsed JSON (conversationJson when it does not parse). Empty conversationId reads the active conversation. Opens the assistant panel. Waits like send_message (default 60s).", "epic_ai_assistant_get_conversation"),
29
+ ...specBp("read", "Read an AI Assistant conversation as Epic serializes it (UAIAssistantInstance::GetConversationJson): conversation is the parsed JSON (conversationJson when it does not parse). Empty conversationId reads the active conversation. Does not open the assistant panel, and fails while it is closed (send_message opens it). Waits like send_message (default 60s).", "epic_ai_assistant_get_conversation"),
30
30
  followUp: waitForAssistant(60),
31
31
  },
32
32
  ai_assistant_get_request: specBp("read", "One poll of an AI Assistant request that send_message or get_conversation opened: state pending, complete (with its reply, conversationId or conversation) or failed (errorCode ai_assistant_failed, assistantError). A complete or failed answer releases the request; an unknown or released requestId returns ai_assistant_request_not_found.", "epic_ai_assistant_get_request"),
@@ -1 +1 @@
1
- {"version":3,"file":"epic.js","sourceRoot":"","sources":["../../src/tools/epic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OA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in Fab tools, found from the fab category.
3
+ *
4
+ * The Fab plugin the launcher installs beside UE 5.9 carries its own toolset
5
+ * (module FabToolset) in Unreal's Toolset Registry, the registry Epic's Unreal
6
+ * MCP server and AI Assistant read: it searches the Fab catalog and imports
7
+ * listings, which fab's own actions do not. ue-mcp extends those tools rather
8
+ * than replacing them, so an agent working in the fab category has to be able
9
+ * to find and run them from here.
10
+ *
11
+ * The 5.9 catalog records the Fab plugin's toolset (FabToolset.FabToolset, as
12
+ * Fab UE Plugin 0.0.22 registers it), so its tools are also declared as fab's
13
+ * epic_* actions. The plugin is a launcher item that versions on its own,
14
+ * though, so this action asks the connected editor what it actually has, under
15
+ * the same routing rule the generator and `project(set_category_enabled)` use,
16
+ * and names the call that runs each tool: epic(call_tool) with its toolset for
17
+ * a registry tool, epic(call_mcp_tool) for one the Fab plugin registers with
18
+ * Epic's MCP plugin, and the fab epic_* action when one wraps the tool.
19
+ */
20
+ import type { HandlerActionSpec } from "../core/types.js";
21
+ /** Whether a toolset or tool name belongs to Fab, by the same rule the generator routes with. */
22
+ export declare function isFabToolName(name: string): boolean;
23
+ export declare const listEpicFabTools: HandlerActionSpec;
@@ -0,0 +1,109 @@
1
+ import { actions as fabEpicActions } from "./epic/fab.generated.js";
2
+ import { routeEpicToolset } from "./epic/toolset-routes.js";
3
+ /** The fab epic_* action that wraps each recorded Fab tool, by its qualified registry name. */
4
+ const ACTION_BY_TOOL = new Map(Object.entries(fabEpicActions)
5
+ .map(([key, spec]) => [spec.epicTool?.name, key])
6
+ .filter((e) => typeof e[0] === "string"));
7
+ /** Whether a toolset or tool name belongs to Fab, by the same rule the generator routes with. */
8
+ export function isFabToolName(name) {
9
+ return routeEpicToolset(name) === "fab";
10
+ }
11
+ async function ask(ctx, method, params) {
12
+ try {
13
+ const answer = await ctx.bridge.call(method, params);
14
+ const body = answer && typeof answer === "object" ? answer : {};
15
+ if (body.success === false || body.available === false) {
16
+ const why = body.error ?? body.reason ?? body.note;
17
+ return { body, refused: typeof why === "string" && why ? why : `${method} is not available in this editor` };
18
+ }
19
+ return { body };
20
+ }
21
+ catch (e) {
22
+ return { thrown: e };
23
+ }
24
+ }
25
+ function message(e) {
26
+ return e instanceof Error ? e.message : String(e);
27
+ }
28
+ function records(v) {
29
+ return Array.isArray(v) ? v.filter((x) => !!x && typeof x === "object") : [];
30
+ }
31
+ /** A registry tool as list_toolsets gives it: a bare name, or the full object with includeSchemas. */
32
+ function toolEntry(t) {
33
+ if (typeof t === "string")
34
+ return { name: t };
35
+ if (t && typeof t === "object" && typeof t.name === "string")
36
+ return t;
37
+ return null;
38
+ }
39
+ const NONE_NOTE = "The connected editor's Toolset Registry and Unreal MCP plugin report no Fab tools. Epic's built-in Fab tools "
40
+ + "(catalog search and import) come with the Fab UE Plugin that the Epic Games Launcher installs beside the engine, "
41
+ + "as its FabToolset module (UE 5.9). fab(status) says whether that plugin is installed and loaded; epic(list_toolsets) "
42
+ + "lists every toolset this editor has. fab's own actions still cover the signed-in account's owned library.";
43
+ export const listEpicFabTools = {
44
+ kind: "handler",
45
+ effect: "read",
46
+ description: "List Epic's built-in Fab tools the connected editor has, which search the Fab catalog and import listings "
47
+ + "(the Fab plugin's FabToolset.FabToolset in Unreal's Toolset Registry, UE 5.9, and any Fab tool registered with Epic's Unreal MCP plugin). "
48
+ + "Each tool names the call that runs it: epic(call_tool) with its toolset and qualified name, or epic(call_mcp_tool), "
49
+ + "plus the fab epic_* action that wraps it when this session has one. "
50
+ + "ue-mcp does not replace these tools; use them for catalog search and free-asset import, and fab's own actions for the owned library. "
51
+ + "includeSchemas returns each tool's input schema. available=false with a note when the editor has none. "
52
+ + "Params: includeSchemas? (bool)",
53
+ handler: async (ctx, p) => {
54
+ const includeSchemas = p.includeSchemas === true;
55
+ const [registry, mcp] = await Promise.all([
56
+ ask(ctx, "epic_list_toolsets", { includeSchemas }),
57
+ ask(ctx, "epic_list_mcp_tools", { includeSchemas }),
58
+ ]);
59
+ // Neither call reached an editor: the caller has to hear why, not "no tools".
60
+ if (registry.thrown && mcp.thrown)
61
+ throw registry.thrown;
62
+ // A fab action is named only while this session still has it: nativeTools can withhold the epic_* ones.
63
+ const fabNow = ctx.getToolGraph?.().find((t) => t.name === "fab");
64
+ const actionFor = (tool) => {
65
+ const key = ACTION_BY_TOOL.get(tool);
66
+ return key && (!ctx.getToolGraph || (fabNow && key in fabNow.actions)) ? key : undefined;
67
+ };
68
+ const toolsets = records(registry.body?.toolsets)
69
+ .filter((ts) => typeof ts.name === "string" && isFabToolName(ts.name))
70
+ .map((ts) => ({
71
+ name: ts.name,
72
+ ...(typeof ts.description === "string" ? { description: ts.description } : {}),
73
+ tools: (Array.isArray(ts.tools) ? ts.tools : [])
74
+ .map(toolEntry)
75
+ .filter((t) => t !== null)
76
+ .map((t) => {
77
+ const action = actionFor(String(t.name));
78
+ return {
79
+ ...t,
80
+ // epic_call_tool requires the toolset beside the tool; a call without it is refused.
81
+ call: `epic(action="call_tool", args={toolset: "${String(ts.name)}", tool: "${String(t.name)}", input: {...}})`,
82
+ ...(action ? { action: `fab(action="${action}", args={...})` } : {}),
83
+ };
84
+ }),
85
+ }));
86
+ const mcpTools = records(mcp.body?.tools)
87
+ .filter((t) => typeof t.name === "string" && isFabToolName(t.name))
88
+ .map((t) => ({ ...t, call: `epic(action="call_mcp_tool", args={tool: "${String(t.name)}", input: {...}})` }));
89
+ const toolCount = toolsets.reduce((n, ts) => n + ts.tools.length, 0) + mcpTools.length;
90
+ const errors = {
91
+ ...(registry.refused || registry.thrown ? { registryError: registry.refused ?? message(registry.thrown) } : {}),
92
+ ...(mcp.refused || mcp.thrown ? { mcpToolsError: mcp.refused ?? message(mcp.thrown) } : {}),
93
+ };
94
+ return {
95
+ available: toolCount > 0,
96
+ toolCount,
97
+ toolsets,
98
+ mcpTools,
99
+ ...errors,
100
+ ...(toolCount === 0
101
+ ? { note: NONE_NOTE }
102
+ : {
103
+ hint: "Run a tool with the call it names. describe its arguments first with includeSchemas=true, "
104
+ + "or epic(action=\"describe_toolset\", args={toolset: \"<name>\"}).",
105
+ }),
106
+ };
107
+ },
108
+ };
109
+ //# sourceMappingURL=fab-epic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fab-epic.js","sourceRoot":"","sources":["../../src/tools/fab-epic.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,+FAA+F;AAC/F,MAAM,cAAc,GAAgC,IAAI,GAAG,CACzD,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC;KAC3B,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAE,IAAyC,CAAC,QAAQ,EAAE,IAAI,EAAE,GAAG,CAAU,CAAC;KAC/F,MAAM,CAAC,CAAC,CAAC,EAAkC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,CAC3E,CAAC;AAEF,iGAAiG;AACjG,MAAM,UAAU,aAAa,CAAC,IAAY;IACxC,OAAO,gBAAgB,CAAC,IAAI,CAAC,KAAK,KAAK,CAAC;AAC1C,CAAC;AAYD,KAAK,UAAU,GAAG,CAAC,GAAgB,EAAE,MAAc,EAAE,MAAY;IAC/D,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACrD,MAAM,IAAI,GAAG,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAE,MAAe,CAAC,CAAC,CAAC,EAAE,CAAC;QAC1E,IAAI,IAAI,CAAC,OAAO,KAAK,KAAK,IAAI,IAAI,CAAC,SAAS,KAAK,KAAK,EAAE,CAAC;YACvD,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,I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AC,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAC;QAEhH,MAAM,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC;QACvF,MAAM,MAAM,GAAG;YACb,GAAG,CAAC,QAAQ,CAAC,OAAO,IAAI,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,OAAO,IAAI,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC/G,GAAG,CAAC,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,GAAG,CAAC,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC5F,CAAC;QACF,OAAO;YACL,SAAS,EAAE,SAAS,GAAG,CAAC;YACxB,SAAS;YACT,QAAQ;YACR,QAAQ;YACR,GAAG,MAAM;YACT,GAAG,CAAC,SAAS,KAAK,CAAC;gBACjB,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE;gBACrB,CAAC,CAAC;oBACA,IAAI,EAAE,4FAA4F;0BAC9F,mEAAmE;iBACxE,CAAC;SACL,CAAC;IACJ,CAAC;CACF,CAAC"}
package/dist/tools/fab.js CHANGED
@@ -1,30 +1,39 @@
1
1
  import { categoryTool } from "../surface/category-tool.js";
2
+ import { z } from "zod";
2
3
  import { specBp, schema as specSchema } from "./specs/fab.generated.js";
3
- // Fab asset importer. Fab is Epic's unified content marketplace; UE ships an
4
- // editor plugin whose window is a web frontend (catalog browse, library,
5
- // purchase, and signed-URL resolution all live on Epic's servers) sitting on a
6
- // thin native download+import layer. This category drives the native pieces
7
- // that don't need the web frontend: login lifecycle, syncing the user's owned
8
- // library into the Content Browser, inspecting/clearing the download cache, and
9
- // importing owned/local source files through the Fab import pipeline.
10
- //
11
- // Searching, browsing and buying stay on fab.com: Fab publishes no search API
12
- // and its terms forbid automated access. open_search only opens fab.com's own
13
- // search page at a query (#1485). Add items to your library there, then use
14
- // sync_library + import_file here.
15
- export const fabTool = categoryTool("fab", "Import Fab (Epic marketplace) content: open the fab.com search page at a query, check plugin/login status, trigger login/logout, sync your owned library into the Content Browser, inspect/clear the download cache, and import owned or local source files into the project.", {
16
- status: specBp("read", "Report Fab plugin state: whether the module is loaded, whether the native import/cache API is linked in this build, whether the Fab window has been opened this session, and the download cache location/size. Call this first.", "fab_status"),
17
- login: specBp("mutate", "Trigger the Fab login flow (EOS account portal). Asynchronous - returns once the flow is opened, not once authenticated. Complete any prompt, then call status. No inverse: it creates no state of its own, and logout would clear a session that may predate the call, so the response says rollbackPossible=false. It carries no unchanged/already* flag either, and says so with idempotencyObservable=false: the Fab module publishes no authentication state this build can read back, so a flag here would be a claim rather than a reading.", "fab_login"),
18
- logout: specBp("mutate", "Clear the persistent Fab authentication for this device. No inverse: logging back in needs a person at the EOS account portal, and no call restores cleared credentials. idempotencyObservable=false, because whether a session was there to clear is not readable from here.", "fab_logout"),
19
- sync_library: specBp("mutate", "Load the user's owned Fab library (\"My Folder\") into the Content Browser via TEDS. Requires an active login; items appear asynchronously. No inverse: it populates an in-editor index of what the account already owns, nothing un-lists it, and nothing on disk or in the project changes. idempotencyObservable=false, because the sync lands after this call returns.", "fab_sync_library"),
4
+ import { listEpicFabTools } from "./fab-epic.js";
5
+ import { actions as epicActions, schema as epicSchema } from "./epic/fab.generated.js";
6
+ // Uses the Fab plugin's own session (the launcher installs it as the "Fab UE
7
+ // Plugin" item) and the engine's native download/import services. Catalog
8
+ // search and import of listings are what Epic's built-in Fab tools do (the
9
+ // plugin's FabToolset, UE 5.9, declared below as epic_* actions from the
10
+ // recorded catalog); list_epic_tools finds them live, and nothing here
11
+ // may tell an agent that the editor cannot do what those tools do.
12
+ export const fabTool = categoryTool("fab", "Fab (Epic marketplace) content in the editor. Searching the Fab catalog and importing listings, free ones included, is what Epic's built-in Fab tools do (the Fab plugin's FabToolset.FabToolset, UE 5.9). They are declared here as epic_* actions from the recorded catalog, and list_epic_tools lists the ones this editor actually has with the call that runs each. ue-mcp's own actions add: plugin/login status, login/logout, syncing your owned library into the Content Browser, downloading and verifying owned UE packs with pause/resume, inspecting/clearing the native cache, installing verified Content safely, importing local source files, and opening the fab.com search page at a query.", {
13
+ list_epic_tools: listEpicFabTools,
14
+ status: specBp("read", "Report Fab plugin state: authenticated (whether a native Fab session is available), whether the plugin is installed and enabled (pluginDir, pluginVersion), whether the module is loaded, whether the native import/cache API is linked in this build, whether the Fab window has been opened this session, the download cache location/size, and librarySync state with pages, snapshotItems, publishedRows and any sanitized failure. The launcher installs Fab as its own 'Fab UE Plugin' item, so an engine can lack it; then errorCode is PLUGIN_NOT_AVAILABLE and note says what is missing and how to install it, the same reason the other Fab actions refuse with. Call this first.", "fab_status"),
15
+ login: specBp("mutate", "Open the native Fab EOS account portal. With a session already active it opens nothing and answers unchanged=true. Returns before authentication completes; finish any prompt, then poll status.authenticated. No inverse: opening a portal does not own the resulting account session. idempotencyObservable=false because this call cannot attribute a later login to itself.", "fab_login"),
16
+ logout: specBp("mutate", "Request native Fab logout and clear this editor's owned-library snapshot. EOS completes asynchronously; poll status.authenticated until false. No inverse: cleared credentials require a person to sign back in.", "fab_logout"),
17
+ sync_library: specBp("mutate", "Sync the owned Fab library into the native Content Browser table (UE 5.8+). Requires a native login. Returns immediately; poll status.librarySync until complete or failed. Fetches all pages before replacing the previous snapshot, preserving it on HTTP, JSON, pagination or publication failure. No project files change.", "fab_sync_library"),
18
+ list_owned: specBp("read", "Read the current account's synced owned metadata and supported projectVersions, with local title filtering and pagination. Each row adds listingId (what download takes) and availableForThisEditor (this editor's engine and platform are among its projectVersions). Complete sync_library first; before it, errorCode FAB_NOT_SIGNED_IN or FAB_LIBRARY_NOT_SYNCED says which step is missing. Only the owned library: to search the public catalog use Epic's built-in Fab tools (list_epic_tools).", "fab_list_owned"),
19
+ download: specBp("mutate", "Start an owned native UE asset-pack download. engineVersion and platform default to this editor's; a listing without that build answers with the versions it offers. Returns job immediately; poll download_status for complete or failed. Native BuildPatchServices verifies SHA hashes and reuses partial staging. Defaults to the native Fab cache. verifyOnly checks an existing tree without repairing it. Repeat the same listing/version/outputDirectory after an editor restart to resume. No project content changes until install_pack.", "fab_download"),
20
+ download_status: specBp("read", "Read asynchronous job state, native phase, progress, required/downloaded bytes and failure code; omit jobId to list this editor session's jobs. No tokens or signed URLs are returned.", "fab_download_status"),
21
+ pause_download: specBp("mutate", "Stop network/assembly work while keeping native verified files and staging. Wait for paused before resuming. Can pause distribution resolution too.", "fab_pause_download"),
22
+ resume_download: specBp("mutate", "Resume a paused, failed or cancelled job. Reuses the native Fab session and obtains a fresh distribution signature before native verification and repair.", "fab_resume_download"),
23
+ cancel_download: specBp("mutate", "Cancel a job while retaining its verified data for an explicit later resume. Does not delete downloaded or installed content.", "fab_cancel_download"),
24
+ install_pack: specBp("mutate", "Copy a completed, SHA-verified pack's native Content packages into this project, preserving package paths. Checks every source and collision first; different existing files are refused. Skips identical files and installs no Config, engine plugins or settings. Records exactly which files it created for remove_installation.", "fab_install_pack"),
25
+ remove_installation: specBp("mutate", "Remove only unchanged, unloaded project files that this session's install_pack job created. Refuses modified or loaded packages before deleting anything; preserves pre-existing identical files.", "fab_remove_installation"),
20
26
  list_cached: specBp("read", "List the entries currently in the local Fab download cache (already-downloaded owned assets).", "fab_list_cached"),
21
27
  cache_info: specBp("read", "Report the Fab download cache location, total size, and entry count.", "fab_cache_info"),
22
28
  clear_cache: specBp("mutate", "Delete the local Fab download cache to reclaim disk. Does not affect assets already imported into the project. Reports unchanged=true when the cache was already empty (where the native Fab API is linked). No inverse: the downloads come back only by downloading them again.", "fab_clear_cache"),
23
29
  import_file: specBp("mutate", "Import a source file into the project through the Fab Interchange import pipeline. Use for owned assets that are downloaded/cached locally, or any local source file (fbx, textures). Single files import synchronously and report the created asset paths; pack/quixel workflows may run asynchronously. A synchronous import rolls back by deleting exactly the assets it created, taken from the paths the importer reported (a force delete, because the imported set references itself). An ASYNCHRONOUS import emits no inverse: its paths are not known yet, and a record naming the destination folder would delete whatever else already lives there.", "fab_import_file"),
24
- open_search: specBp("read", "Open fab.com's own search page at a query in the user's default browser. Builds https://www.fab.com/search?q=<query>&listing_types=<listingType>&asset_formats=<assetFormat>&is_free=1, leaving out unset filters. Sends no request to Fab and returns no listing data: Fab has no search API and its terms forbid automated access. open=false returns the URL without opening it, for showing as a link. Returns url and opened.", "fab_open_search"),
30
+ open_search: specBp("read", "Open fab.com's own search page at a query in the user's default browser. Builds https://www.fab.com/search?q=<query>&listing_types=<listingType>&asset_formats=<assetFormat>&is_free=1, leaving out unset filters. This action itself sends no request to Fab and returns no listing data; to search the catalog and import listings from the editor, use Epic's built-in Fab tools (list_epic_tools). open=false returns the URL without opening it, for showing as a link. Returns url and opened.", "fab_open_search"),
31
+ ...epicActions,
25
32
  }, {
33
+ ...epicSchema,
26
34
  // #1057: every key the fab handlers declare, generated from their C++
27
35
  // registrations.
28
36
  ...specSchema,
37
+ includeSchemas: z.boolean().optional().describe("list_epic_tools: return each Fab tool's input schema (default false)"),
29
38
  });
30
39
  //# sourceMappingURL=fab.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fab.js","sourceRoot":"","sources":["../../src/tools/fab.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAExE,6EAA6E;AAC7E,yEAAyE;AACzE,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,gFAAgF;AAChF,sEAAsE;AACtE,EAAE;AACF,8EAA8E;AAC9E,8EAA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AE,kRAAkR,EAAE,iBAAiB,CAAC;IACrU,WAAW,EAAG,MAAM,CAAC,QAAQ,EAAE,goBAAgoB,EAAE,iBAAiB,CAAC;IACnrB,WAAW,EAAG,MAAM,CAAC,MAAM,EAAE,seAAse,EAAE,iBAAiB,CAAC;IACvhB,GAAG,WAAW;CACf,EACD;IACE,GAAG,UAAU;IACb,sEAAsE;IACtE,iBAAiB;IACjB,GAAG,UAAU;IACb,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sEAAsE,CAAC;CACxH,CACF,CAAC"}
@@ -81,8 +81,11 @@ export const levelTool = categoryTool("level", "Level actors, selection, compone
81
81
  spawn_skeletal_mesh_actor: specBp("mutate", "Spawn a SkeletalMeshActor for visual/deform verification. Optional per-slot COMPONENT material overrides (they write the component's OverrideMaterials, not the mesh ASSET's slots, which material(build_material) writes) and single-node animation preview (animSequence + loop). Each entry in materials[] comes back with ok, and a path that does not load or a slot index past the mesh's slot count is reported rather than silently dropped, because a silently dropped assignment reads as one that worked. To dress an actor that is already placed, or to put one material on every slot, use level(set_component_materials) (#946). Returns actorLabel + boxExtent + materialSlotCount. The animSequence is written to the component's editable AnimationData, so it persists across a level save/reload instead of only driving the runtime preview and coming back in A-pose (#790) (#679/#677).", "spawn_skeletal_mesh_actor"),
82
82
  delete_actors: specBp("mutate", "Bulk-delete actors. The filter names say exactly what they match, because two level actions taking similar-sounding filters with different semantics is how a caller ends up trusting a wrong zero (#963): labelPrefix is a CASE-SENSITIVE PREFIX over the EDITOR LABEL, labelContains a case-insensitive SUBSTRING over the label, nameContains a case-insensitive substring over the INTERNAL name, className a case-sensitive substring over the class name. get_outliner's nameFilter is looser than any of them (label OR internal name, substring), so a string that selects a set there can select a different set here. When nothing matches, the response explains it rather than returning a bare zero: zeroMatchHint reports how many actors the same string WOULD have matched under the other semantics with samples, and a World Partition map says that only loaded actors were enumerated. classPathContains is a case-insensitive substring of the generated UClass path (e.g. /SurvivalGameKitV2/), so a whole vendor folder can be selected without listing every Blueprint class, and classPathContainsAny is the same match against any of several substrings (#924). folderPath selects one World Outliner folder exactly and folderPathPrefix that folder and everything nested under it, the same folder match get_outliner and query_components use; a folder filter that matches nothing returns similarFolders (#1529). dryRun previews. Returns matched/deleted/labels/classPaths/folderPaths (#220/#924/#963).", "delete_actors"),
83
83
  delete_exact_labeled_actors_in_levels: specBp("mutate", "Delete actors by EXACT label across several map packages in one call, without leaving the maps open or dirty. Previews by default (dryRun defaults to TRUE, the opposite of delete_actors), and every level is loaded and preflighted before anything is deleted, so a bad label in the last map cannot half-commit the first. Refuses the whole request on duplicate labels, a class that does not match expectedClassPath, actors living in a streaming sublevel, WorldSettings/default brush/level blueprint, World Partition maps, a read-only .umap, or an editor that is already dirty. Saves only the maps it actually changed, then returns to the map that was open. Limits: 16 levels, 256 labels per level. onMissing=ignore makes a replay idempotent.", "delete_exact_labeled_actors_in_levels"),
84
- list_actor_descs: specBp("read", "World Partition ONLY: list on-disk actor descriptors, including actors whose cell is not loaded and which every other actor query therefore reports as absent. Returns guid/label/class/bounds/runtimeGrid/dataLayers plus a loaded flag, and separate loadedMatches/unloadedMatches counts so 'not streamed in' is distinguishable from 'does not exist'. Needs UE 5.5 or newer (#746).", "list_actor_descs"),
85
- load_actor_descs: specBp("mutate", "World Partition ONLY: pin matched actors so they become resident and the normal actor actions can reach them, or unpin to release. Pinning is used rather than transient streaming because a transient load is dropped again by the streaming system mid-measurement. Takes the same filters as list_actor_descs and refuses to act on more than maxActors (default 256) so an unfiltered call cannot pin a whole map by accident. Reports residentAfter, read back from the world rather than assumed. Needs UE 5.5 or newer (#746).", "load_actor_descs"),
84
+ list_actor_descs: specBp("read", "World Partition ONLY: list on-disk actor descriptors, including actors whose cell is not loaded and which every other actor query therefore reports as absent. Returns guid/label/class/package/folderPath/bounds/runtimeGrid/dataLayers plus a loaded flag, and separate loadedMatches/unloadedMatches counts so 'not streamed in' is distinguishable from 'does not exist'. packages[] looks actors up by their external actor package (full path or the XX/YY/NAME tail, as a changelist lists them) and reports the ones no descriptor holds as missingPackages. Needs UE 5.5 or newer (#746).", "list_actor_descs"),
85
+ load_actor_descs: specBp("mutate", "World Partition ONLY: pin matched actors so they become resident and the normal actor actions can reach them, or unpin to release. Pinning is used rather than transient streaming because a transient load is dropped again by the streaming system mid-measurement. Takes the same filters as list_actor_descs (packages[] included, with missingPackages) and refuses to act on more than maxActors (default 256) so an unfiltered call cannot pin a whole map by accident. Reports residentAfter, read back from the world rather than assumed. Unpinning releases pins and nothing else: an actor an editor loaded region or location volume holds stays resident, and list_loaded_regions / unload_loaded_regions release those. Needs UE 5.5 or newer (#746).", "load_actor_descs"),
86
+ list_loaded_regions: specBp("read", "World Partition ONLY: list the editor loader adapters that keep actors resident, which load_actor_descs(unpin) cannot release because they are not pins: user loaded regions (the World Partition editor's Load Region from Selection, and the regions the editor restores when a map is reopened), location volumes, and any other loader the engine tracks. Each row has an id that unload_loaded_regions accepts, its kind (userRegion, locationVolume, actor or other), label, bounds, loaded, and actorCount / residentActors / dirtyActorPackages measured over those bounds (the adapter keeps its own reference set private, so the count is the spatially loaded descriptors that meet the box). Unloaded sources are hidden unless includeUnloaded=true. Paged. Needs UE 5.5 or newer.", "list_loaded_regions"),
87
+ unload_loaded_regions: specBp("mutate", "World Partition ONLY: unload editor loaded regions and location volumes by id (from list_loaded_regions) and/or by a bounds box, the same as Unload Region in the World Partition editor, which is the only way to make actors a loaded region holds non-resident. Refuses the whole request, unloading nothing, when a region holds actors whose packages are dirty (their unsaved edits would be discarded) unless force=true; refuses more than maxRegions (default 8) so a wide box cannot unload everything; dryRun previews. residentAfter is read back from the world over the unloaded footprint, with residentPinnedAfter and a note when something else (a pin, an overlapping region) still holds actors. Needs UE 5.5 or newer.", "unload_loaded_regions"),
88
+ load_region: specBp("mutate", "World Partition ONLY: load a box as a user loaded region, the same as Load Region from Selection in the World Partition editor, and return its id for unload_loaded_regions. Refuses a box holding more than maxActors (default 256) actors; a loaded region over the same box is reported as existed. Its rollback is unload_loaded_regions for that id. Needs UE 5.5 or newer.", "load_region"),
86
89
  get_world_partition_settings: specBp("read", "World Partition ONLY: the streaming knobs on the open map, plus the runtime cell transformer stack. Returns the world partition and runtime hash classes, whether streaming is enabled, the default HLOD layer, and grids[] with each grid's name, CellSize, LoadingRange and a dotted path rooted at the world partition. Grids are found by REFLECTION rather than against a fixed class, so this answers for the RuntimeHashSet layout and the older spatial hash alike. cellTransformers[] lists each stack entry with its class, its instancePath and the current values of the instanced transformer object's editable properties, which no read exposed (#985).", "get_world_partition_settings"),
87
90
  set_world_partition_settings: specBp("mutate", "World Partition ONLY: write the streaming knobs. cellSize and loadingRange are the shorthand for the primary tuning pair and pick the map's only grid automatically, or name one with grid (its name) or gridPath (the dotted path from get_world_partition_settings). settings takes any dotted path rooted at the world partition, which is how the INSTANCED runtime cell transformer object is configured ('RuntimeCellsTransformerStack[0].Instance.SomeProperty') - that object is read-only through Python and was previously set by hand in the editor UI. Every path is resolved BEFORE anything is written, so a bad path fails the call rather than leaving the map streaming on a mixture nobody asked for, and each write reports previousValue and the value read back. Streaming settings only apply to cells generated after the change, so rebuild the streaming data before measuring. The map package is left dirty and is NOT saved (#985).", "set_world_partition_settings"),
88
91
  add_runtime_cell_transformer: specBp("mutate", "World Partition ONLY: append a WorldPartitionRuntimeCellTransformer to RuntimeCellsTransformerStack and configure its instanced object in the same call. Adding the entry without being able to write the instance would leave the manual editor step exactly where it was, so the instance is created here and properties are applied to it. skipIfPresent (default true) makes a rerun a no-op that reports the existing index instead of stacking duplicates. position inserts at an index rather than appending, because the stack is ordered (#985).", "add_runtime_cell_transformer"),
@@ -170,6 +173,10 @@ export const levelTool = categoryTool("level", "Level actors, selection, compone
170
173
  ...specBp("mutate", "Rebuild the physics and collision state on the components a selector picks, after the mesh data underneath them changed. Stale collision makes line_trace report a MISS through solid geometry, which is the worst kind of wrong answer because nothing about it looks wrong. dryRun DEFAULTS TO TRUE and is the preflight: it lists which components would be rebuilt and what their collision enabled state and profile are right now. Requires at least one bound and never refreshes a whole world implicitly. Returns per-component before/after collision state plus a post-refresh collisionSummary histogram (#915).", "recreate_physics_state"),
171
174
  timeoutMs: 300_000,
172
175
  },
176
+ resave_mesh_users: {
177
+ ...specBp("mutate", "Rebuild the collision of every LOADED component using the given static meshes, then save exactly the packages that own those actors. Use it after a mesh's collision changed. A SplineMeshComponent keeps its own deformed copy of its mesh's collision, saved with the actor, and rebuilds it only when the mesh's BodySetupGuid differs from the one it cached, so an AggGeom edit that left the GUID alone leaves every copy stale in memory and on disk. recreateCollision (default true) calls RecreateCollision on each SplineMeshComponent, rebuilding the copy from the current mesh whatever the GUID says, and RecreatePhysicsState on every match. Components match by mesh object path, case-insensitive, and componentClass narrows them to StaticMeshComponent or SplineMeshComponent (default any). Matches are grouped by the actor's external package (one file per actor) or its level's package, and those are saved through the same targeted save asset(save, assetPaths) uses, so no other dirty package is written. A package holding only StaticMeshComponents has nothing of its own to write and reports notDirty. dryRun DEFAULTS TO TRUE and lists every package, actor and component with the component's current body setup GUID and bounds, and for a spline whether its cached GUID matches the mesh. Per package: actor labels, componentCount, status saved | notDirty | failed with a reason, wasDirty, and the file's size and mtime before and after with fileChanged. Scans only actors resident in the editor world; on World Partition, load the cells first with level(load_actor_descs). Refuses during PIE and over maxActors.", "resave_mesh_users"),
178
+ timeoutMs: 300_000,
179
+ },
173
180
  test_component_overlap: specBp("read", "Do two placed components overlap? Returns the boolean plus both sides' local bounds, world bounds and world transforms, and separation (when apart) or penetration depth (when overlapping). For a UBoxComponent it also returns boxExtentUnscaled, the authored BoxExtent the details panel shows, which no other read exposed. method=OBB (default) runs a separating-axis test on the components' oriented local bounds, so a rotated box is tested as a rotated box; method=AABB compares the axis-aligned world bounds and adds a per-axis gap. Deliberately geometric rather than a physics overlap query: a physics answer depends on collision state, and stale collision state is what makes a trace lie (see recreate_physics_state). Omitting a componentName selects that actor's root component (#914).", "test_component_overlap"),
174
181
  shape_trace: specBp("read", "Sweep a sphere, axis-aligned box or vertical capsule in the editor or PIE world. Uses line_trace channel names and selectors. Returns the first blocking hit plus bStartPenetrating; multi=true returns overlaps through the first blocker, capped at 64 with totalHits and truncated.", "shape_trace"),
175
182
  line_trace: specBp("read", "Line trace. world selects which world is traced: 'editor' (default) or 'pie' for the LIVE running PIE world, which is the only way to check geometry that exists once play has begun (#933). Traces simple collision by default, the same as a gameplay trace, so the result matches what the running game hits; pass traceComplex to trace per-triangle instead. multi=true returns hits[] in distance order, every overlap up to and including the first blocker, capped at 64 with totalHits and truncated; hit stays true only when something blocked. channel picks the collision channel, including channels this project renamed in its collision settings. The response echoes traceComplex, channel and the world that actually answered, and faceIndex is only present on a complex hit. Returns hit + actorLabel/actorClass/componentName/componentClass/location/impactPoint/normal/distance/faceIndex/boneName/physicalMaterial (#420, #807, #933). From inside a run_python_file script the same trace is unreal.MCPTraceLibrary.line_trace(start, end, world, pie_instance, channel, trace_complex) (#1283).", "line_trace"),