Skip to content

AnswerDeclaration

Declares an interactive answer slot that can be pre-filled via --answer:{name}=value on the CLI or answer:{name} in MCP tool calls.

public sealed record AnswerDeclaration : IEquatable<AnswerDeclaration>
  • IEquatable<AnswerDeclaration>

AnswerDeclaration(string, string, string?)

Section titled “AnswerDeclaration(string, string, string?)”

Declares an interactive answer slot that can be pre-filled via --answer:{name}=value on the CLI or answer:{name} in MCP tool calls.

public AnswerDeclaration(string Name, string Type = "string", string? Description = null)
  • Name (string): Answer name (matches the name parameter in AskConfirmationAsync, etc.).
  • Type (string): Value type using route constraint names: string, bool, int, guid, email, etc.
  • Description (string): Optional description for help text and agent tool schemas.

Optional description for help text and agent tool schemas.

public string? Description { get; init; }

string

Answer name (matches the name parameter in AskConfirmationAsync, etc.).

public string Name { get; init; }

string

Value type using route constraint names: string, bool, int, guid, email, etc.

public string Type { get; init; }

string