载入中...
搜索中...
未找到
McpEntityInspection.cpp
浏览该文件的文档.
35 return encoding.valid() && encoding.wait_for(std::chrono::seconds(0)) != std::future_status::ready;
49 if (name != "eve_entity_views" && name != "eve_entity_views_status" && name != "eve_entity_views_release")
62 return error("Entity inspection provider unavailable; requires a running supported graphics backend");
71 return error("Expected domain=renderable3d, mode=geometry, uint32 entityId/generation, cellSize=64..1024");
80 if (!args->has("token") || !args->get("token").isString()) return error("token must be a string");
166{"name":"eve_entity_views","description":"Queue four isolated geometry diagnostic views of a generation-qualified Renderable3D: front/right/top plus original active camera, same frozen geometry. World-normal colors, no materials/lighting/scene occluders. Static, already-baked CPU morph and current four-influence skin poses supported; custom shaders/LOD/instances unsupported. Skin palettes must be affine, with valid joints and nonnegative weights. Returns token; poll eve_entity_views_status. Does not advance gameplay or change the camera.","inputSchema":{"type":"object","additionalProperties":false,"required":["domain","entityId","generation","mode"],"properties":{"domain":{"type":"string","enum":["renderable3d"]},"mode":{"type":"string","enum":["geometry"]},"entityId":{"type":"integer","minimum":0,"maximum":4294967295},"generation":{"type":"integer","minimum":0,"maximum":4294967295},"cellSize":{"type":"integer","minimum":64,"maximum":1024,"default":512}}}},
167{"name":"eve_entity_views_status","description":"Poll entity view token. Ready returns a PNG four-view atlas and source camera/bounds metadata; GPU readback and PNG encoding never block this call. Layout: front/right on top, top/game camera below.","inputSchema":{"type":"object","additionalProperties":false,"required":["token"],"properties":{"token":{"type":"string","minLength":1,"maxLength":128}}}},
168{"name":"eve_entity_views_release","description":"Release or cancel entity inspection; in-flight GPU resources retire after completion. Release before requesting another target. Ready snapshots expire after 60 seconds.","inputSchema":{"type":"object","additionalProperties":false,"required":["token"],"properties":{"token":{"type":"string","minLength":1,"maxLength":128}}}}
171EVE_MCP_TOOL_FAMILY(EntityInspection, mcpEntityInspectionSchemas, callMcpEntityInspectionTool, ContentEnvelope)
#define EVE_MCP_TOOL_FAMILY(Id, Schemas, Handler, Payload)
Declare one family beside its implementation; CMake derives composition from compiled sources.
Definition McpToolFamilies.hpp:86
Definition ActionGuideExport.cpp:13
std::string callMcpEntityInspectionTool(std::string_view name, Object::Ptr args)
Definition McpEntityInspection.cpp:48
std::string mcpStringify(const Poco::Dynamic::Var &value)
Compact single-line JSON text for a newline-framed MCP payload.
Definition McpJson.hpp:24
std::string textContentResult(const std::string &text, bool isError=false)
MCP tools/call result object carrying one text content item.
Definition McpJson.hpp:84
std::string_view mcpEntityInspectionSchemas()
Source-owned schemas for the optional entity-inspection capability.
Definition McpEntityInspection.cpp:164
@ Failed
std::string_view frameCapturePhaseName(FrameCapturePhase p)
Stable protocol spelling of a progress state.
Definition FrameCapture.cpp:34
enum EVENGINE_API_FOUNDATION Array
OT_ARRAY (editable via Runtime array APIs / ReflectedPropertyModel).
Definition Runtime.h:120
Generation-qualified Renderable3D request; geometry diagnostics, world axes, isolated entity.
Definition EntityInspection.h:6