Skip to main content

add_tools

Function add_tools 

Source
pub(crate) fn add_tools(
    builder: McpServerBuilder,
    facade: Arc<dyn BrowserFacade>,
    slot: SessionSlot,
) -> McpServerBuilder
Expand description

Attach the browser tools to an existing builder, so they share the forge server name with every other family.

The last spec takes the caller’s own handles: every tool keeps a handle of its own, and nothing is left holding the originals once they are all registered.