ModelContextRegisterToolOptions Class
The options of ModelContext.RegisterTool (https://webmachinelearning.github.io/webmcp/#dictdef-modelcontextregistertooloptions).
public sealed class ModelContextRegisterToolOptionsConstructors
| Name | Description |
|---|---|
| ModelContextRegisterToolOptions() |
ModelContextRegisterToolOptions()
public ModelContextRegisterToolOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| ExposedTo | 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). |
| Signal | Gets the signal that unregisters the tool when it is aborted, or null. |
ExposedTo
ModelContextTypes.csGets 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; }Signal
ModelContextTypes.csGets the signal that unregisters the tool when it is aborted, or null.
public AbortSignal? Signal { get; init; }