register method

void register(
  1. Tool tool
)

Registers tool, overwriting any existing registration with the same name.

Implementation

void register(Tool tool) {
  _tools[tool.name] = tool;
  _logger.debug('Tool registered: ${tool.name}');
}