JustAMCPToolsetRegistry๏ƒ

Inherits: Object

Registry for modular JustAMCP toolsets and lazy discovery meta-tools.

Description๏ƒ

Allows modules to register named toolsets with schema providers and executors. When blazium/justamcp/enable_toolset_discovery is enabled, clients discover tools via blazium_list_toolsets, blazium_describe_toolset, and blazium_call_toolset.

Methods๏ƒ

Dictionary

call_toolset(toolset_name: String, tool_name: String, arguments: Dictionary) const

Dictionary

describe_toolset(name: String) const

bool

is_discovery_enabled() const

Array

list_toolset_names() const

Dictionary

list_toolsets() const

void

register_toolset(name: String, description: String, get_schemas: Callable, execute_tool: Callable)

void

unregister_toolset(name: String)


Method Descriptions๏ƒ

Dictionary call_toolset(toolset_name: String, tool_name: String, arguments: Dictionary) const ๐Ÿ”—

Executes tool_name inside toolset_name with arguments and returns the tool response dictionary. Unknown or disabled toolsets return an error dictionary.


Dictionary describe_toolset(name: String) const ๐Ÿ”—

Returns a dictionary describing name, including tool schemas when the toolset is enabled. Unknown or disabled toolsets return an error dictionary.


bool is_discovery_enabled() const ๐Ÿ”—

Returns true when blazium/justamcp/enable_toolset_discovery is enabled in project or editor settings.


Array list_toolset_names() const ๐Ÿ”—

Returns the sorted list of registered toolset names.


Dictionary list_toolsets() const ๐Ÿ”—

Returns a result dictionary with ok, toolsets, and count describing each registered toolset.


void register_toolset(name: String, description: String, get_schemas: Callable, execute_tool: Callable) ๐Ÿ”—

Registers a toolset named name with description, schema provider get_schemas, and executor execute_tool.


void unregister_toolset(name: String) ๐Ÿ”—

Removes the toolset named name and frees any owned provider object.