Skip to main content

dispatch_browser_tool

Function dispatch_browser_tool 

Source
pub async fn dispatch_browser_tool(
    plugin: Arc<BrowserPlugin>,
    tool_name: &str,
    args: Value,
) -> Result<Value, ToolInvocationError>
Expand description

Match tool_name against the 12 browser_* tools and dispatch to the matching BrowserPlugin::execute flow. Returns a JSON Value ready to land in the tool.invoke reply’s result field, or ToolInvocationError for the host’s RemoteToolHandler decoder.