ToolHandler typedef
ToolHandler =
Future<Object?> Function(ToolParams params)
Signature for a tool handler function.
The handler receives parsed ToolParams and returns the tool's result (e.g. String, Map, List) or throws an exception on error.
Implementation
typedef ToolHandler = Future<Object?> Function(ToolParams params);