ToolHandler typedef

ToolHandler = Future<CallToolResult> Function(Map<String, dynamic> args)

A tool callback that runs in Dart. Mirrors the handler passed to tool().

Declared here as part of the 1:1 type surface; the reverse-RPC dispatch that invokes it mid-query is wired in todo #5.

Implementation

typedef ToolHandler =
    Future<CallToolResult> Function(Map<String, dynamic> args);