• Overview
@angular/core

WebMcpToolDescriptor

interface

Describes and implements a specific WebMCP tool for an agent to invoke.

API

    
      interface WebMcpToolDescriptor<InputSchema extends JsonSchemaForInference> {}
    
    

name

string

The unique name of this tool.

description

string | undefined

A description of what the tool does and how the agent should consider using it.

inputSchema

InputSchema

A 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.

Jump to details