InProcessToolHandler typedef

InProcessToolHandler = Future Function(Map<String, dynamic> params)

In-process tool handler. Returns the parsed JSON value (or null) that the runtime applies spec §3.10 auto-merge against — exactly the shape an MCP callTool text response would decode to.

Implementation

typedef InProcessToolHandler = Future<dynamic> Function(
  Map<String, dynamic> params,
);