Skip to content

PluginToolSecret

Record in Oadm.Sdk.Plugins · Oadm.Sdk.dll

A secret the run of a plugin tool’s change needs (SDK 0.13.0, docs/spec/mcp.md “Secrets”): a password, a passphrase, a key. The caller never sends it as an argument: the tool declares it (PluginTool.Secrets) or the preview’s plan names it (PluginToolPlan.SecretsNeeded), the person enters the value in their own shell or the assistant’s card, and the host hands it to a check of the value and to the run in the payload’s PluginToolSecrets.ValuesProperty. Never echo a value in an answer, an audit detail or a log line.

public sealed record PluginToolSecret(string Name, string Label, int MaxLength = 1024)

Parameters

  • Name: Lower case words with underscores (“password”, “pkcs12_password”); read it with PluginToolInput<TArgs>.Secret.
  • Label: What the person is asked for, in lower case (“password”, “PKCS#12 password”); the refusal reads “Enter the <label>.”.
  • MaxLength: The longest value in characters.
string Label { get; init; }

What the person is asked for, in lower case (“password”, “PKCS#12 password”); the refusal reads “Enter the <label>.”.

int MaxLength { get; init; }

The longest value in characters.

string Name { get; init; }

Lower case words with underscores (“password”, “pkcs12_password”); read it with PluginToolInput<TArgs>.Secret.