Skip to content
Tracon

ToolRegistrationOptions

Namespace Tracon · Assembly Tracon.Abstractions.dll

Configures metadata for a tool registration.

public sealed class ToolRegistrationOptions

objectToolRegistrationOptions

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

public ToolRegistrationOptions()

Gets or sets the tool effect. The default is ToolEffect.Read.

public ToolEffect Effect { get; set; }

ToolEffect

Gets or sets the maximum UTF-8 result size, or null to use the installation default.

public int? MaxOutputBytes { get; set; }

int?

Gets or sets the permission required to invoke the tool.

public string? RequiredPermission { get; set; }

string?

Gets or sets whether a call needs explicit approval.

public bool RequiresApproval { get; set; }

bool

Gets or sets whether an interrupted external or destructive call may be repeated.

public bool SafeToRepeat { get; set; }

bool

Gets or sets the tool source. Code-defined tools use null.

public string? Source { get; set; }

string?

Gets or sets the tool timeout, or null to use the installation default.

public TimeSpan? Timeout { get; set; }

TimeSpan?