JustAMCPToolExecutor๏
Inherits: Object
Routes MCP tool calls to the matching JustAMCP tool implementation.
Description๏
JustAMCPToolExecutor builds the available tool schema list and dispatches validated tool calls to specialized tool groups such as JustAMCPSceneTools, JustAMCPResourceTools, JustAMCPScriptTools, and JustAMCPDocumentationTools. Use it when code needs the same tool surface exposed to MCP clients.
Long-running tools expose execution.taskSupport: optional in schemas (autowork, export, batch, editor play/reload) for MCP task-augmented tools/call.
var schemas = JustAMCPToolExecutor.get_tool_schemas()
var executor = JustAMCPToolExecutor.new()
var response = executor.execute_tool("scene_tree", {})
print(response)
Methods๏
execute_tool(tool_name: String, args: Dictionary) |
|
get_tool_schemas(register_only: bool = false, ignore_settings: bool = false) static |
|
list_tools(cursor: String = "") static |
|
void |
set_test_scene_root(node: Node) static |
Method Descriptions๏
Dictionary execute_tool(tool_name: String, args: Dictionary) ๐
Executes the tool named by tool_name with args and returns the tool response dictionary. Unknown or unavailable tools return an error dictionary.
Array get_tool_schemas(register_only: bool = false, ignore_settings: bool = false) static ๐
Returns MCP JSON schema dictionaries for the available tools. Set register_only to return registration metadata only, or ignore_settings to bypass editor filtering.
Dictionary list_tools(cursor: String = "") static ๐
Returns a paginated MCP tools/list result dictionary with tools and optional nextCursor. cursor is an opaque token from a previous page.
void set_test_scene_root(node: Node) static ๐
Overrides the scene root used by scene-related tools. This is intended for tests and headless validation that need a deterministic root Node.