载入中...
搜索中...
未找到
McpCoreSchemas.cpp
浏览该文件的文档.
2#include <string>
3
4namespace eve::dev {
5std::string_view mcpCoreToolSchemas() {
6 static const char* const kToolsParts[] = {
7 "{\"name\":\"eve_status\",\"description\":\"Runtime + debugger + MCP/DAP status JSON.\","
8 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
9 "{\"name\":\"eve_api_search\",\"description\":\"Search this build's EveScript Binding Contracts "
10 "(module/class/method signatures). Look up APIs before writing .nut. Do not use this to invent Unity C# "
11 "names.\","
12 "\"inputSchema\":{\"type\":\"object\",\"properties\":{"
13 "\"query\":{\"type\":\"string\",\"description\":\"case-insensitive method, class, key, or space-separated "
14 "tokens\"},"
15 "\"module\":{\"type\":\"string\",\"description\":\"optional exact module id\"},"
16 "\"class\":{\"type\":\"string\",\"description\":\"optional exact script class\"},"
17 "\"limit\":{\"type\":\"integer\",\"minimum\":1,\"maximum\":64}},"
18 "\"required\":[]}},"
19 "{\"name\":\"eve_api_get\",\"description\":\"Fetch one EveScript Binding Contract by key (module/Class.method "
20 "or slot.method) or unique method name. Misses return suggestions (did-you-mean). Prefer after "
21 "eve_api_search.\","
22 "\"inputSchema\":{\"type\":\"object\",\"properties\":{"
23 "\"key\":{\"type\":\"string\"},\"class\":{\"type\":\"string\"},\"method\":{\"type\":\"string\"}}}},"
24 "{\"name\":\"eve_script_components\","
25 "\"description\":\"Engine-side script component data: every entity's registered components and their "
26 "current field values (the authoritative store, not script slots).\","
27 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
28 "{\"name\":\"eve_gameplay\",\"description\":\"Observe, discover, submit or advance player-equivalent gameplay "
29 "through the versioned shared control protocol.\","
30 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"request\":{\"type\":\"object\"}},\"required\":["
31 "\"request\"]}},"
32 "{\"name\":\"eve_play\",\"description\":\"Unified Play Host: pause/play, step host frames, observe "
33 "game.agent.json script roots, run mapped act, capture engine screenshots, checkpoint restore, "
34 "record/replay play traces, and report gameWorld (runtime systems + script publishWorldContext) on "
35 "op=status without eve_eval.\","
36 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"request\":{\"type\":\"object\"}},\"required\":["
37 "\"request\"]}},"
38 "{\"name\":\"eve_pixelworld_worlds\",\"description\":\"List live PixelWorld simulations and status.\","
39 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
40 "{\"name\":\"eve_pixelworld_catalog_builtin\",\"description\":\"Return the canonical versioned built-in "
41 "material/reaction Catalog document.\","
42 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
43 "{\"name\":\"eve_pixelworld_catalog_validate\",\"description\":\"Transactionally validate and canonicalize a "
44 "material/reaction Catalog document.\","
45 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"catalog\":{}},\"required\":[\"catalog\"]}},"
46 "{\"name\":\"eve_pixelworld_catalog_apply\",\"description\":\"Hot-reload a compatible Catalog into a paused "
47 "world using optimistic fingerprint concurrency.\","
48 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"world\":{\"type\":\"integer\"},\"catalog\":{},"
49 "\"expectedFingerprint\":{\"type\":\"string\"}},\"required\":[\"world\",\"catalog\",\"expectedFingerprint\"]}},"
50 "{\"name\":\"eve_pixelworld_pause\",\"description\":\"Pause or resume one PixelWorld.\","
51 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"world\":{\"type\":\"integer\"},"
52 "\"paused\":{\"type\":\"boolean\"}},\"required\":[\"world\",\"paused\"]}},"
53 "{\"name\":\"eve_pixelworld_step\",\"description\":\"Explicitly advance one PixelWorld by 1-1024 ticks, "
54 "including while paused.\","
55 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"world\":{\"type\":\"integer\"},"
56 "\"count\":{\"type\":\"integer\",\"minimum\":1,\"maximum\":1024}},\"required\":[\"world\"]}},"
57 "{\"name\":\"eve_pixelworld_edit\",\"description\":\"Apply a strictly sequenced paint, heat, or explosion "
58 "edit.\","
59 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"world\":{\"type\":\"integer\"},"
60 "\"sequence\":{\"type\":\"integer\"},\"kind\":{\"type\":\"string\",\"enum\":[\"paint\",\"heat\",\"explosion\"]}"
61 ","
62 "\"x\":{\"type\":\"integer\"},\"y\":{\"type\":\"integer\"},\"radius\":{\"type\":\"integer\"},"
63 "\"material\":{\"type\":\"integer\"},\"strength\":{\"type\":\"integer\"},"
64 "\"temperatureDelta\":{\"type\":\"integer\"}},\"required\":[\"world\",\"sequence\",\"kind\"]}},"
65 "{\"name\":\"eve_pixelworld_diagnostics\",\"description\":\"Inspect bounded per-Chunk activity, material and "
66 "temperature diagnostics.\","
67 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"world\":{\"type\":\"integer\"},"
68 "\"minX\":{\"type\":\"integer\"},\"minY\":{\"type\":\"integer\"},\"maxX\":{\"type\":\"integer\"},"
69 "\"maxY\":{\"type\":\"integer\"}},\"required\":[\"world\"]}},"
70 "{\"name\":\"eve_pixelworld_samples\",\"description\":\"Read the latest bounded PixelWorld simulation "
71 "performance samples.\","
72 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"world\":{\"type\":\"integer\"},"
73 "\"limit\":{\"type\":\"integer\",\"minimum\":1,\"maximum\":256}},\"required\":[\"world\"]}},"
74 "{\"name\":\"eve_pixelworld_snapshot_capture\",\"description\":\"Capture a canonical PixelWorld snapshot as "
75 "hex.\","
76 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"world\":{\"type\":\"integer\"}},\"required\":["
77 "\"world\"]}},"
78 "{\"name\":\"eve_pixelworld_snapshot_restore\",\"description\":\"Transactionally restore a canonical hex "
79 "PixelWorld snapshot.\","
80 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"world\":{\"type\":\"integer\"},"
81 "\"snapshot\":{\"type\":\"string\"}},\"required\":[\"world\",\"snapshot\"]}},"
82 "{\"name\":\"eve_ui_tree\",\"description\":\"Inspect retained game UI hosts and semantic widget trees (not "
83 "only eve_host editors).\","
84 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"host\":{\"type\":\"string\",\"description\":\"optional "
85 "exact host name\"}}}},"
86 "{\"name\":\"eve_ui_get\",\"description\":\"Read one retained game UI widget by semantic id.\","
87 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"host\":{\"type\":\"string\"},\"widget\":{\"type\":"
88 "\"string\"}},\"required\":[\"widget\"]}},"
89 "{\"name\":\"eve_ui_click\",\"description\":\"Queue a semantic click by retained game UI widget id through the "
90 "normal event path.\","
91 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"host\":{\"type\":\"string\"},\"widget\":{\"type\":"
92 "\"string\"}},\"required\":[\"widget\"]}},"
93 "{\"name\":\"eve_editor_commands\",\"description\":\"List editor commands allowed for automation in the active "
94 "game/editor.\","
95 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
96 "{\"name\":\"eve_editor_target_list\",\"description\":\"Discover editor targets and creatable types: every "
97 "registered target id with its type/revision/generation plus bound/owned flags, and the target type names the "
98 "currently loaded adapters accept. Targets a project script created and bound (tile layer, height map, voxel "
99 "world, ...) appear here, which is the only way to learn their id.\","
100 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
101 "{\"name\":\"eve_editor_target_create\",\"description\":\"Create an Editor-owned document target or bind a "
102 "live "
103 "SceneHost/Renderable3D for Agent workflows. Accepted type names are runtime-dependent: call "
104 "eve_editor_target_list and read supportedTypes instead of assuming a fixed set.\","
105 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"target\":{\"type\":\"string\"},\"type\":{\"type\":"
106 "\"string\"},\"host\":{\"type\":\"string\"},\"object\":{\"type\":\"string\"},\"entityId\":{\"type\":"
107 "\"integer\",\"minimum\":0},\"generation\":{\"type\":\"integer\",\"minimum\":0}},\"required\":[\"target\","
108 "\"type\"]}},"
109 "{\"name\":\"eve_editor_target_close\",\"description\":\"Unregister and destroy an Editor-owned automation "
110 "target.\","
111 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"target\":{\"type\":\"string\"}},\"required\":["
112 "\"target\"]}},"
113 "{\"name\":\"eve_editor_inspect\",\"description\":\"Inspect authoritative structured state for an editor "
114 "target.\","
115 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"target\":{\"type\":\"string\"}},\"required\":["
116 "\"target\"]}},"
117 "{\"name\":\"eve_editor_plan\",\"description\":\"Validate and retain a side-effect-free editor command plan.\","
118 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"command\":{\"type\":\"string\"},\"payload\":{},"
119 "\"expectedRevision\":{\"type\":\"integer\"}},\"required\":[\"command\"]}},"
120 "{\"name\":\"eve_editor_commit\",\"description\":\"Commit a retained editor command plan.\","
121 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"planId\":{\"type\":\"string\"}},\"required\":["
122 "\"planId\"]}},"
123 "{\"name\":\"eve_editor_execute\",\"description\":\"Execute an editor command immediately through the same "
124 "transaction path as UI and scripts.\","
125 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"command\":{\"type\":\"string\"},\"payload\":{}},"
126 "\"required\":[\"command\"]}},"
127 "{\"name\":\"eve_editor_execute_observe\",\"description\":\"Execute one Editor transaction and return "
128 "correlated before/after runtime observations plus the Editor target snapshot. An optional expect object "
129 "declares the desired observed subset; tolerance controls numeric matching and the response reports converged, "
130 "maxError, and mismatch paths. The observer is renderable3d by default; scene-node observes a node in an "
131 "optional named host. Missing or stale subjects and invalid expectations are rejected before mutation.\","
132 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"target\":{\"type\":\"string\"},\"command\":{\"type\":"
133 "\"string\"},\"payload\":{},\"observer\":{\"type\":\"string\",\"enum\":[\"renderable3d\",\"scene-node\"]},"
134 "\"entityId\":{\"type\":\"integer\",\"minimum\":0},\"generation\":{\"type\":\"integer\",\"minimum\":0},"
135 "\"host\":{\"type\":\"string\"},\"node\":{\"type\":\"string\"},\"expect\":{\"type\":\"object\"},\"tolerance\":{"
136 "\"type\":\"number\",\"minimum\":0}},"
137 "\"required\":[\"target\",\"command\"]}},"
138 "{\"name\":\"eve_editor_observe_start\",\"description\":\"Start an RX-backed runtime observation session. The "
139 "initial sample is validated immediately; consecutive duplicate samples are suppressed until the session is "
140 "closed.\","
141 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"observer\":{\"type\":\"string\",\"enum\":["
142 "\"renderable3d\",\"scene-node\"]},\"entityId\":{\"type\":\"integer\",\"minimum\":0},\"generation\":{\"type\":"
143 "\"integer\",\"minimum\":0},\"host\":{\"type\":\"string\"},\"node\":{\"type\":\"string\"},\"expect\":{\"type\":"
144 "\"object\"},\"tolerance\":{\"type\":\"number\",\"minimum\":0}}}},"
145 "{\"name\":\"eve_editor_observe_poll\",\"description\":\"Sample and drain changed events from an RX-backed "
146 "observation session.\","
147 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"sessionId\":{\"type\":\"string\"}},\"required\":["
148 "\"sessionId\"]}},"
149 "{\"name\":\"eve_editor_observe_close\",\"description\":\"Explicitly cancel and remove an RX-backed "
150 "observation session.\","
151 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"sessionId\":{\"type\":\"string\"}},\"required\":["
152 "\"sessionId\"]}},"
153 "{\"name\":\"eve_editor_cancel\",\"description\":\"Discard a retained editor command plan without side "
154 "effects.\","
155 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"planId\":{\"type\":\"string\"}},\"required\":["
156 "\"planId\"]}},"
157 "{\"name\":\"eve_editor_undo\",\"description\":\"Undo the last editor transaction in the automation session.\","
158 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
159 "{\"name\":\"eve_editor_redo\",\"description\":\"Redo the last editor transaction in the automation session.\","
160 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
161 "{\"name\":\"eve_editor_diagnostics\",\"description\":\"Read structured diagnostics from the last editor "
162 "automation operation.\","
163 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
164 "{\"name\":\"eve_renderable3d_get\",\"description\":\"Read generation-qualified live Renderable3D transform "
165 "and field-backed material state for Agent verification.\","
166 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"entityId\":{\"type\":\"integer\",\"minimum\":0},"
167 "\"generation\":{\"type\":\"integer\",\"minimum\":0}},\"required\":[\"entityId\",\"generation\"]}},"
168 "{\"name\":\"eve_eval\",\"description\":\"Evaluate a Squirrel expression (local or roottable).\","
169 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"expression\":{\"type\":\"string\"}},\"required\":["
170 "\"expression\"]}},"
171 "{\"name\":\"eve_skeleton_inspect\",\"description\":\"Inspect a published runtime skeleton hierarchy and "
172 "bind/current bone transforms. The game provides eve_mcp_skeleton_inspect.\","
173 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"actor\":{\"type\":\"string\"},\"bone\":{\"type\":"
174 "\"string\"}},\"required\":[\"actor\"]}},"
175 "{\"name\":\"eve_pause\",\"description\":\"Pause the game / script.\","
176 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
177 "{\"name\":\"eve_continue\",\"description\":\"Continue from pause.\","
178 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
179 "{\"name\":\"eve_step_over\",\"description\":\"Step over next statement.\","
180 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
181 "{\"name\":\"eve_step_into\",\"description\":\"Step into next statement.\","
182 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
183 "{\"name\":\"eve_step_out\",\"description\":\"Step out of current function.\","
184 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
185 "{\"name\":\"eve_step_frame\",\"description\":\"Run one game frame then pause.\","
186 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
187 "{\"name\":\"eve_stack\",\"description\":\"Return current script stack frames.\","
188 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
189 "{\"name\":\"eve_locals\",\"description\":\"List locals at a stack level (default 1).\","
190 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
191 "{\"name\":\"eve_set_breakpoint\",\"description\":\"Set a script breakpoint.\","
192 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"source\":{\"type\":\"string\"},\"line\":{\"type\":"
193 "\"integer\"},\"condition\":{\"type\":\"string\",\"description\":\"Optional Squirrel expression; empty always "
194 "hits.\"}},\"required\":[\"source\",\"line\"]}},"
195 "{\"name\":\"eve_clear_breakpoint\",\"description\":\"Clear a script breakpoint.\","
196 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"source\":{\"type\":\"string\"},\"line\":{\"type\":"
197 "\"integer\"}},\"required\":[\"source\",\"line\"]}},"
198 "{\"name\":\"eve_list_breakpoints\",\"description\":\"List breakpoints.\","
199 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
200 "{\"name\":\"eve_watch_add\",\"description\":\"Add a watch expression.\","
201 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"expression\":{\"type\":\"string\"}},\"required\":["
202 "\"expression\"]}},"
203 "{\"name\":\"eve_watch_list\",\"description\":\"List watches with last values.\","
204 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
205 "{\"name\":\"eve_snapshot_capture\",\"description\":\"Capture script-state snapshot JSON.\","
206 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
207 "{\"name\":\"eve_snapshot_restore\",\"description\":\"Restore script-state from snapshot JSON.\","
208 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"json\":{\"type\":\"string\"}},\"required\":[\"json\"]}}"
209 ","
210 "{\"name\":\"eve_snapshot_save\",\"description\":\"Save snapshot to a file path.\","
211 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"path\":{\"type\":\"string\"}},\"required\":[\"path\"]}}"
212 ","
213 "{\"name\":\"eve_snapshot_load\",\"description\":\"Load snapshot from a file path.\","
214 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"path\":{\"type\":\"string\"}},\"required\":[\"path\"]}}"
215 ","
216 "{\"name\":\"eve_error_slice\",\"description\":\"Return last error report / backward slice (script + "
217 "render).\","
218 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
219 "{\"name\":\"eve_run_script\",\"description\":\"Compile and run a short Squirrel snippet in the live VM. No "
220 "in-VM interruption; the native eve mcp stdio supervisor enforces a configurable worker response "
221 "budget (--timeout-ms). TCP live VMs require external process supervision.\","
222 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"source\":{\"type\":\"string\"}},\"required\":["
223 "\"source\"]}},"
224 "{\"name\":\"eve_ai_note\",\"description\":\"Append a note to the DevTools AI session log.\","
225 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"text\":{\"type\":\"string\"}},\"required\":[\"text\"]}}"
226 ","
227 "{\"name\":\"eve_ai_log\",\"description\":\"Read the DevTools AI session log.\","
228 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
229 "{\"name\":\"eve_scene_director_install\",\"description\":\"Install the scene-director authoring kit into the "
230 "live VM (idempotent).\","
231 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
232 "{\"name\":\"eve_scene_director_status\",\"description\":\"Scene-director kit status (installed / propCount / "
233 "hasCamera).\","
234 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
235 "{\"name\":\"eve_scene_reset\",\"description\":\"Clear all staged props, camera and reset lighting to "
236 "defaults.\","
237 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
238 "{\"name\":\"eve_scene_modify\",\"description\":\"Agent scene action: action in "
239 "add_object|spawn|place|move_object|move|scale|rotate|rotation|remove_object|remove|visibility|material|"
240 "lighting|set_lighting|camera|cameras|info|list|reset|ground|align|screen|save|restore|undo|redo|command|bind_"
241 "host. "
242 "relations|relation_begin|relation_update|relation_check|relation_commit|relation_discard|visibility. "
243 "Mutations accept expectedRevision. relations: {value:[{id,type,subject,reference,hard,tolerance}]}; "
244 "visibility targets=[ids], width/height, preview=true or models={id:columnMajor16}; returns opaque raster "
245 "fractions/depth occluders without live mutation. "
246 "relation_begin target is one adjustable object, optional colliders/settings; "
247 "relation_update: {pos:[x,y,z],ticks:1..240}; check returns collision-proxy evidence; "
248 "commit rejects unsatisfied hard relations. ground: {height}; align: {reference,axis,gap}; "
249 "screen: {anchor:[x,y,z],screen:[u,v]} with authored camera; restore: {json}; command: {command,payload}; "
250 "bind_host: {host}. spawn/move params: "
251 "{id,kind,x,y,z,sx,sy,sz,yaw_deg,scale,pos,tint,seed,mesh_params,...}; lighting params: "
252 "{timeOfDay,atmosphere,intensity,background}; camera params: {eye,target,fov}. Returns JSON.\","
253 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"action\":{\"type\":\"string\"},\"target\":{\"type\":"
254 "\"string\"},\"params\":{\"type\":\"object\"}},\"required\":[\"action\"]}},"
255 "{\"name\":\"eve_scene_batch\",\"description\":\"Batch white-box scene authoring: apply many "
256 "eve_scene_modify-shaped actions in one round-trip via scene_director.batch. Each action is "
257 "{action,target?,params?}. stopOnError (default true) aborts on first failure. Returns "
258 "{ok,applied,failed,count,results[],revision}. Prefer this over N×eve_scene_modify for blockouts.\","
259 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"actions\":{\"type\":\"array\",\"items\":{\"type\":"
260 "\"object\",\"properties\":{\"action\":{\"type\":\"string\"},\"target\":{\"type\":\"string\"},\"params\":{"
261 "\"type\":\"object\"}},\"required\":[\"action\"]}},\"stopOnError\":{\"type\":\"boolean\"}},\"required\":["
262 "\"actions\"]}},"
263 "{\"name\":\"eve_camera_generate\",\"description\":\"Generate standardized QC camera rigs (eye/target/fov) "
264 "orbiting the staged scene.\","
265 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"count\":{\"type\":\"integer\"}}}},"
266 "{\"name\":\"eve_scene_info\",\"description\":\"Authoritative staged-scene truth JSON: props "
267 "(id/kind/pos/scale/yaw_deg/tint) + count.\","
268 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
269 "{\"name\":\"inspect_generate_scene_camera_views\",\"description\":\"Generate a standard set of inspection "
270 "camera views (road-level, bird's-eye, corner close-up, vista) around a center point.\","
271 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"center\":{\"type\":\"array\",\"items\":{\"type\":"
272 "\"number\"},\"description\":\"[x,y,z] center point to orbit (default "
273 "[0,0,0])\"},\"fov\":{\"type\":\"number\",\"description\":\"base vertical FOV in degrees (default 60)\"}}}}"
274 ","
275 "{\"name\":\"set_camera_pose\",\"description\":\"Set the active camera pose from position + Euler rotation + "
276 "optional FOV.\","
277 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"pos\":{\"type\":\"array\",\"items\":{\"type\":"
278 "\"number\"},\"description\":\"[x,y,z] camera "
279 "position\"},\"rot\":{\"type\":\"array\",\"items\":{\"type\":\"number\"},\"description\":\"[yawDeg,pitchDeg] "
280 "facing\"},\"fov\":{\"type\":\"number\",\"description\":\"vertical FOV in degrees (0=keep "
281 "current)\"}},\"required\":[\"pos\",\"rot\"]}}"
282 ","
283 "{\"name\":\"capture_render_frame\",\"description\":\"Atomically capture the current view and export matching "
284 "buffers. PNG color frame + geometry JSON always; 'buffers' may add depth/normal (GBuffer), id (per-pixel "
285 "render ID mask with JSON mapping) — shadow is unsupported on current backend.\","
286 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"dir\":{\"type\":\"string\",\"description\":\"output "
287 "directory (default: cache dir)\"},\"tag\":{\"type\":\"string\",\"description\":\"file name tag (default "
288 "'frame')\"},\"buffers\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"optional: "
289 "'color'|'depth'|'normal'|'id' (default ['color'])\"}}}}"
290 ","
291 "{\"name\":\"get_visible_entities_screen_bbox\",\"description\":\"Return visible scene entities in the frustum "
292 "with their screen-space bbox, world AABB, id and asset label.\","
293 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"pos\":{\"type\":\"array\",\"items\":{\"type\":"
294 "\"number\"},\"description\":\"optional [x,y,z] camera eye "
295 "override\"},\"target\":{\"type\":\"array\",\"items\":{\"type\":\"number\"},\"description\":\"optional [x,y,z] "
296 "look target override\"},\"fov\":{\"type\":\"number\",\"description\":\"optional FOV override (degrees)\"}}}}"
297 ","
298 "{\"name\":\"eve_scene_status\",\"description\":\"Active scene host name, node count and root id.\","
299 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
300 "{\"name\":\"eve_scene_nodes\",\"description\":\"List nodes of the active scene host (id/name/path/visible).\","
301 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"limit\":{\"type\":\"integer\"}}}},"
302 "{\"name\":\"eve_scene_node_get\",\"description\":\"Read transform/visibility/parent/children of a scene node "
303 "by id.\","
304 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"}},\"required\":[\"id\"]}},"
305 "{\"name\":\"eve_scene_node_set\",\"description\":\"Set position (x,y,z) or visibility of a scene node by "
306 "id.\","
307 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"x\":{\"type\":\"number\"},"
308 "\"y\":{\"type\":\"number\"},\"z\":{\"type\":\"number\"},\"visible\":{\"type\":\"boolean\"}},\"required\":["
309 "\"id\"]}},"
310 "{\"name\":\"eve_procgen_recipes\",\"description\":\"List available procgen map algorithms and "
311 "mesh/texture/PBR recipes.\","
312 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
313 "{\"name\":\"eve_procgen_map\",\"description\":\"Generate a semantic tile grid with a procgen map algorithm.\","
314 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"algorithm\":{\"type\":\"string\"},\"width\":{\"type\":"
315 "\"integer\"},\"height\":{\"type\":\"integer\"},\"seed\":{\"type\":\"integer\"}},\"required\":[\"algorithm\"]}}"
316 ","
317 "{\"name\":\"eve_procgen_mesh\",\"description\":\"Build a procedural CPU mesh (mesh.* recipe) and return "
318 "stats.\","
319 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"recipe\":{\"type\":\"string\"},\"seed\":{\"type\":"
320 "\"integer\"}},\"required\":[\"recipe\"]}},"
321 "{\"name\":\"eve_physics_new_world\",\"description\":\"Create a 2D physics world and return its id.\","
322 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"gravityX\":{\"type\":\"number\"},\"gravityY\":{"
323 "\"type\":\"number\"}}}},"
324 "{\"name\":\"eve_physics_list_worlds\",\"description\":\"List live 2D physics worlds with gravity.\","
325 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
326 "{\"name\":\"eve_physics_raycast\",\"description\":\"Raycast a segment in a physics world and report the "
327 "closest hit.\","
328 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"world\":{\"type\":\"integer\"},\"x1\":{\"type\":"
329 "\"number\"},\"y1\":{\"type\":\"number\"},\"x2\":{\"type\":\"number\"},\"y2\":{\"type\":\"number\"}},"
330 "\"required\":[\"world\",\"x1\",\"y1\",\"x2\",\"y2\"]}},"
331 "{\"name\":\"eve_physics_remove_world\",\"description\":\"Destroy a 2D physics world by id.\","
332 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"world\":{\"type\":\"integer\"}},\"required\":["
333 "\"world\"]}},"
334 "{\"name\":\"eve_render_status\",\"description\":\"Render window size, 3D frame flag, readback state and "
335 "RenderFlow event count.\","
336 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
337 "{\"name\":\"eve_screenshot\",\"description\":\"Capture the current frame to a PNG file (enables readback). "
338 "Relative paths resolve against the project root and the response carries the absolute path, byte size and "
339 "pixel size. The swapchain copy lands on the next present, so the first call can return ok=false with "
340 "retryable=true and readbackEnabled=false; wait one rendered frame and call again.\","
341 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"path\":{\"type\":\"string\"}}}},"
342 "{\"name\":\"eve_render_describe\",\"description\":\"Capture the current frame and ask the configured vision "
343 "model to describe it and relate it to render parameters. Cached unless fresh=true.\","
344 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"fresh\":{\"type\":\"boolean\"},\"reason\":{\"type\":"
345 "\"string\"}}}},"
346 "{\"name\":\"eve_render_vision_config\",\"description\":\"Set/read the vision model config "
347 "(baseUrl/apiKey/model/path/timeoutMs). No args returns current config (key masked).\","
348 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"baseUrl\":{\"type\":\"string\"},\"apiKey\":{\"type\":"
349 "\"string\"},\"model\":{\"type\":\"string\"},\"path\":{\"type\":\"string\"},\"timeoutMs\":{\"type\":"
350 "\"integer\"}}}},"
351 "{\"name\":\"eve_particles_status\",\"description\":\"Report live particle emitter count.\","
352 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
353 "{\"name\":\"eve_particles_emit\",\"description\":\"Spawn a particle emitter at a position (optionally a "
354 "preset) and emit particles.\","
355 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"x\":{\"type\":\"number\"},\"y\":{\"type\":\"number\"},"
356 "\"preset\":{\"type\":\"string\"},\"count\":{\"type\":\"integer\"}}}},"
357 "{\"name\":\"eve_audio_status\",\"description\":\"Report master audio volume.\","
358 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},"
359 "{\"name\":\"eve_audio_set_volume\",\"description\":\"Set master audio volume (0..1).\","
360 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"volume\":{\"type\":\"number\"}},\"required\":["
361 "\"volume\"]}},"
362 "{\"name\":\"eve_audio_stop_all\",\"description\":\"Stop all playing audio sources.\","
363 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},",
364 "{\"name\":\"eve_host_status\",\"description\":\"Headless editor host status: window, editors, registered "
365 "ViewModels, project root.\","
366 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},",
367 "{\"name\":\"eve_host_window_open\",\"description\":\"Create the host OS window (lazy; editors can also "
368 "auto-open it).\","
369 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\"},\"width\":{\"type\":"
370 "\"integer\"},\"height\":{\"type\":\"integer\"}}}},"
371 "{\"name\":\"eve_host_window_close\",\"description\":\"Close the host OS window (MCP server stays alive).\","
372 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},",
373 "{\"name\":\"eve_host_window_state\",\"description\":\"Host window open state + size.\","
374 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},",
375 "{\"name\":\"eve_host_editor_apply\",\"description\":\"Apply an editor View (JSON widget tree). Auto-opens the "
376 "host window on first use.\","
377 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"editor\":{\"type\":\"object\"}},\"required\":["
378 "\"editor\"]}},",
379 "{\"name\":\"eve_host_editor_remove\",\"description\":\"Remove an editor panel from the session.\","
380 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"}},\"required\":[\"id\"]}},",
381 "{\"name\":\"eve_host_editor_list\",\"description\":\"List editors (id/title/vm).\","
382 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},",
383 "{\"name\":\"eve_host_editor_state\",\"description\":\"Editor values + pending events (id omitted = all "
384 "editors).\","
385 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"}}}},"
386 "{\"name\":\"eve_host_editor_set_value\",\"description\":\"Set a widget value (JSON value). Writes the bound "
387 "ViewModel and emits a change event.\","
388 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"editor\":{\"type\":\"string\"},\"widget\":{\"type\":"
389 "\"string\"},\"value\":{}},\"required\":[\"editor\",\"widget\",\"value\"]}},",
390 "{\"name\":\"eve_host_editor_save\",\"description\":\"Persist editor as editors/<id>.editor.json + <id>.vm.nut "
391 "in the project.\","
392 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"}},\"required\":[\"id\"]}},",
393 "{\"name\":\"eve_host_editor_unload\",\"description\":\"Remove an editor from the session (files stay on "
394 "disk).\","
395 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"}},\"required\":[\"id\"]}},",
396 "{\"name\":\"eve_host_vm_register\",\"description\":\"Compile a Squirrel ViewModel and register it by table "
397 "name.\","
398 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"source\":{\"type\":"
399 "\"string\"}},\"required\":[\"name\",\"source\"]}},",
400 "{\"name\":\"eve_host_vm_unregister\",\"description\":\"Unregister a ViewModel table.\","
401 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"}},\"required\":[\"name\"]}}"
402 ",",
403 "{\"name\":\"eve_host_events\",\"description\":\"Read and clear interaction events (human clicks/sliders or AI "
404 "set_value).\","
405 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"editor\":{\"type\":\"string\"}}}},"
406 "{\"name\":\"eve_host_widget_rect\",\"description\":\"Last-frame screen rect of a widget (for script drawing "
407 "in viewports).\","
408 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"editor\":{\"type\":\"string\"},\"widget\":{\"type\":"
409 "\"string\"}},\"required\":[\"editor\",\"widget\"]}},",
410 "{\"name\":\"eve_host_capture\",\"description\":\"Capture the host window to a PNG and return path/size.\","
411 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"path\":{\"type\":\"string\"}}}},"
412 "{\"name\":\"eve_host_script\",\"description\":\"Run a Squirrel snippet in the host VM (full engine API + "
413 "eve.host).\","
414 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"source\":{\"type\":\"string\"}},\"required\":["
415 "\"source\"]}},",
416 "{\"name\":\"eve_host_resource_reload\",\"description\":\"Reload a project-scoped MCP host script or editor "
417 "View/ViewModel resource without restarting.\","
418 "\"inputSchema\":{\"type\":\"object\",\"properties\":{\"path\":{\"type\":\"string\"}},\"required\":[\"path\"]}}"
419 ",",
420 "{\"name\":\"eve_host_hot_reload_status\",\"description\":\"MCP host watcher count, reload counters and latest "
421 "reload diagnostic.\","
422 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}},",
423 "{\"name\":\"eve_host_shutdown\",\"description\":\"Exit the headless MCP host process.\","
424 "\"inputSchema\":{\"type\":\"object\",\"properties\":{}}}",
425 };
426 static const std::string body = [] {
427 std::string out;
428 for (const char* part : kToolsParts) out += part;
429 return out;
430 }();
431 return body;
432}
433} // namespace eve::dev
std::string body
ScriptStructure out
std::string_view mcpCoreToolSchemas()
Borrow legacy core tool schemas; process lifetime, synchronized first initialization....