Enter to send·Shift+Enter new line
Callback for headless tool lifecycle events.
onTool: OnToolCallback