onRun

val onRun: suspend (context: ToolContext, args: Map<String, Any?>) -> Any

Parameters

onRun

The suspendable lambda that simulates the run method execution. It receives the ToolContext and arguments map, and must return the tool's result. Defaults to returning a successful "status" mapped to "done".