WebMcpToolDescriptor
Describes and implements a specific WebMCP tool for an agent to invoke.
API
interface WebMcpToolDescriptor<InputSchema extends JsonSchemaForInference> {
name: string;
description?: string | undefined;
inputSchema: InputSchema;
execute: Execute<InputSchema>;
}
name
stringThe unique name of this tool.
description
string | undefinedA description of what the tool does and how the agent should consider using it.
inputSchema
InputSchemaA schema which describes the input arguments expected by the execute function which the agent must provide.
execute
Execute<InputSchema>The callback function which implements this tool.
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/WebMcpToolDescriptor