Skip to main content

before_tool

Method
This is a method of the HookRunner class in the hooks module.
Run before-tool hooks

Signature

def before_tool(
        &self,
        session_id: &str,
        tool_name: &str,
        args: serde_json::Value,
    ) -> Result<HookResult>

Parameters

session_id
&str
required
No description available.
tool_name
&str
required
No description available.
args
serde_json::Value
required
No description available.

Returns

Returns
Result<HookResult>
The result of the operation.