pub async fn dispatch_browser_tool(
plugin: Arc<BrowserPlugin>,
tool_name: &str,
args: Value,
) -> Result<Value, ToolInvocationError>Expand description
Match tool_name against the 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.