HostedMcpServerToolApprovalMode.RequireSpecific Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Instantiates a HostedMcpServerToolApprovalMode that specifies approval behavior for individual tool names.
public:
static Microsoft::Extensions::AI::HostedMcpServerToolRequireSpecificApprovalMode ^ RequireSpecific(System::Collections::Generic::IList<System::String ^> ^ alwaysRequireApprovalToolNames, System::Collections::Generic::IList<System::String ^> ^ neverRequireApprovalToolNames);
public static Microsoft.Extensions.AI.HostedMcpServerToolRequireSpecificApprovalMode RequireSpecific(System.Collections.Generic.IList<string>? alwaysRequireApprovalToolNames, System.Collections.Generic.IList<string>? neverRequireApprovalToolNames);
static member RequireSpecific : System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> -> Microsoft.Extensions.AI.HostedMcpServerToolRequireSpecificApprovalMode
Public Shared Function RequireSpecific (alwaysRequireApprovalToolNames As IList(Of String), neverRequireApprovalToolNames As IList(Of String)) As HostedMcpServerToolRequireSpecificApprovalMode
Parameters
Returns
An instance of HostedMcpServerToolRequireSpecificApprovalMode for the specified tool names.