• Overview
@angular/core

WebMcpToolDescriptor

interface

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

API

    
      interface WebMcpToolDescriptor<InputSchema extends object = object, OutputSchema extends object = object> extends Omit<ModelContextTool, 'execute'> {}
    
    

inputSchema

InputSchema | undefined

A schema which describes the input arguments expected by the execute function which the agent must provide.

outputSchema

OutputSchema | undefined

A schema which describes the format of the output data.

Note: This schema is used purely for metadata purposes to inform AI agents of the expected output format. Angular does not validate that the return value of execute strictly adheres to this schema.

execute

ModelContextToolFromSchema<InputSchema>

The callback function which implements this tool.

Jump to details