Table of Contents

Class McpUiToolVisibility

Namespace
ModelContextProtocol.Extensions.Apps
Assembly
ModelContextProtocol.Extensions.Apps.dll

Provides well-known visibility values for Visibility.

[Experimental("MCPEXP003", UrlFormat = "https://github.com/modelcontextprotocol/csharp-sdk/blob/main/docs/list-of-diagnostics.md#mcpexp003")]
public static class McpUiToolVisibility
Inheritance
McpUiToolVisibility
Inherited Members

Remarks

Use these constants to specify which principals can invoke a tool in the MCP Apps extension. When Visibility is null or empty, the tool is visible to both the model and the app by default.

Fields

App

Indicates that the tool can be invoked by the UI app (iframe).

public const string App = "app"

Field Value

string

Model

Indicates that the tool can be invoked by the AI model.

public const string Model = "model"

Field Value

string