ModelContextRegisterToolOptions Class

The options of ModelContext.RegisterTool (https://webmachinelearning.github.io/webmcp/#dictdef-modelcontextregistertooloptions).

public sealed class ModelContextRegisterToolOptions

Constructors

NameDescription
ModelContextRegisterToolOptions()

ModelContextRegisterToolOptions()

public ModelContextRegisterToolOptions()

No documentation is available.

Properties

NameDescription
ExposedToGets the origins of the documents of the frame tree, other than the documents same origin with the document of the tool, that can discover and execute the tool, or null. Each origin must be a potentially trustworthy URL (e.g. https).
SignalGets the signal that unregisters the tool when it is aborted, or null.

Gets the origins of the documents of the frame tree, other than the documents same origin with the document of the tool, that can discover and execute the tool, or null. Each origin must be a potentially trustworthy URL (e.g. https).

public IReadOnlyList<string>? ExposedTo { get; init; }

Gets the signal that unregisters the tool when it is aborted, or null.

public AbortSignal? Signal { get; init; }