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๏
call_toolset(toolset_name: String, tool_name: String, arguments: Dictionary) const |
|
describe_toolset(name: String) const |
|
is_discovery_enabled() const |
|
list_toolset_names() const |
|
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.