The execute function of a WebMCP tool. Takes in arguments matching the associated
inputSchema and returns content for the agent. The returned result is typically a
string.
API
type WebMcpToolExecute<InputSchema extends JsonSchemaForInference> = ( args: InferArgsFromInputSchema<InputSchema>, client: Client,) => unknown
Jump to details