provideExperimentalWebMcpTools
Provides a list of WebMCP tools tied to the lifecycle of the associated Injector.
API
function provideExperimentalWebMcpTools< InputSchema extends JsonSchemaForInference, >(tools: ToolDescriptor<InputSchema>[]): EnvironmentProviders;
@paramtools
ToolDescriptor<InputSchema>[]The tools to register and execute when invoked by an AI agent.
@returns
EnvironmentProvidersAn EnvironmentProviders that can be used in bootstrapApplication or route providers.
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.
Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/core/provideExperimentalWebMcpTools