Refine core tool profile
This commit is contained in:
+31
-31
@@ -213,7 +213,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'find_nodes',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Find scene nodes by exact name, partial path, or component type.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -228,7 +228,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'inspect_node',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Inspect a specific node by path, uuid, or name.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -325,7 +325,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'list_prefabs',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] List prefab assets in the project.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -443,14 +443,14 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'get_editor_selection',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Return the current node and asset selection in the Cocos editor.',
|
||||
inputSchema: createSchema({}, []),
|
||||
handler: async () => getCurrentSelection(),
|
||||
},
|
||||
{
|
||||
name: 'list_components',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] List components attached to a scene node.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -464,7 +464,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'inspect_component',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Inspect a component attached to a node.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -627,7 +627,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'list_cameras',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] List Camera components in the active scene.',
|
||||
inputSchema: createSchema({}, []),
|
||||
handler: async (args) => sceneBridge.call('listCameras', args),
|
||||
@@ -674,7 +674,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'list_animations',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] List Animation components in the active scene or under one node.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -704,7 +704,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'play_animation',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Play an Animation component clip on a node.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -719,7 +719,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'stop_animation',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Stop an Animation component clip on a node.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -734,7 +734,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'read_file',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Read a file from the Cocos project.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -754,7 +754,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'get_file_snippet',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Read a focused snippet around a file line number.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -775,7 +775,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'write_file',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Write or overwrite a file in the Cocos project.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -794,7 +794,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'replace_in_file',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Replace text in a file, useful for script auto-fix loops.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -827,7 +827,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'search_files',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Search project files by simple wildcard pattern.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -856,7 +856,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'list_directory',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] List files and directories inside a project directory.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -886,7 +886,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'exists',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Check whether a project file or directory exists.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -907,7 +907,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'refresh_assets',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Best-effort asset database refresh for a file or the assets root.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -945,21 +945,21 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'pause_runtime',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Pause Cocos director game logic execution.',
|
||||
inputSchema: createSchema({}, []),
|
||||
handler: async (args) => sceneBridge.call('pauseRuntime', args),
|
||||
},
|
||||
{
|
||||
name: 'resume_runtime',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Resume Cocos director game logic execution.',
|
||||
inputSchema: createSchema({}, []),
|
||||
handler: async (args) => sceneBridge.call('resumeRuntime', args),
|
||||
},
|
||||
{
|
||||
name: 'set_time_scale',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Set Cocos scheduler time scale for runtime validation.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -971,7 +971,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'emit_node_event',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Emit a custom event on a target scene node with an optional JSON payload.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -987,7 +987,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'simulate_button_click',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Simulate a Cocos Button click by emitting click events on the target button node.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -1001,7 +1001,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'invoke_component_method',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Invoke a method on a component for runtime validation and test hooks.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -1049,7 +1049,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'capture_desktop_screenshot',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Capture a screenshot from the local desktop and return it as an MCP image payload.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -1100,7 +1100,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'capture_game_screenshot',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Capture the Game/Preview panel region from the editor window with panel-level cropping when available.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -1125,7 +1125,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'simulate_mouse_click',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Send a low-level Electron mouse click to the editor, preview, or simulator window.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -1144,7 +1144,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'simulate_mouse_drag',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Send a low-level Electron mouse drag to the editor, preview, or simulator window.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -1166,7 +1166,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'simulate_key_press',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Send a low-level Electron key press to the editor, preview, or simulator window.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -1183,7 +1183,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'simulate_key_combo',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Send a low-level Electron modified key press such as Ctrl+S or Cmd+P.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
@@ -1199,7 +1199,7 @@ function createToolRegistry({ getRuntimeContext, interactionLog, sceneBridge, ed
|
||||
},
|
||||
{
|
||||
name: 'simulate_preview_input',
|
||||
profile: 'core',
|
||||
profile: 'full',
|
||||
description: '[core] Convenience wrapper for low-level preview/simulator input. Uses mouse click by default or key press when keyCode is provided.',
|
||||
inputSchema: createSchema(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user