• Overview
@angular/core

provideWebMcpTools

function

Provides a list of WebMCP tools tied to the lifecycle of the associated Injector.

API

function provideWebMcpTools<InputSchema extends JsonSchemaForInference>(
  tools: ToolDescriptor<InputSchema>[],
): EnvironmentProviders;

Description

Provides a list of WebMCP tools tied to the lifecycle of the associated Injector.

The tools are automatically registered when the environment is initialized and unregistered when the associated injector is destroyed.

The tools[number].execute function is invoked in the injection context of the associated Injector.

Jump to details