RegisteredTool

RegisteredTool = ({void Function() disable, void Function() enable, String name, void Function() remove, void Function(ToolConfig config) update})

Registered tool returned from registerTool.

Provides methods to manage the tool lifecycle.

Implementation

typedef RegisteredTool = ({
  /// The tool name.
  String name,

/// Remove the tool from the server. void Function() remove,

/// Update the tool configuration. void Function(ToolConfig config) update,

/// Enable the tool. void Function() enable,

/// Disable the tool. void Function() disable, });