onToolBeforeExecution property
Fired before a tool executes. Can return modified input.
If the returned map is non-null, it replaces the original tool input.
Implementation
final Future<Map<String, dynamic>?> Function(ToolBeforeExecutionEvent event)?
onToolBeforeExecution;