Interface PostToolUseHandler

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PostToolUseHandler
Handler for post-tool-use hooks.

This hook is called after a tool has been executed, allowing you to:

  • Inspect or modify tool results
  • Add additional context for the model
  • Suppress output
Since:
1.0.6
  • Method Details

    • handle

      Handles a post-tool-use hook invocation.
      Parameters:
      input - the hook input containing tool name, arguments, and result
      invocation - context information about the invocation
      Returns:
      a future that resolves with the hook output, or null to use defaults