pub enum ToolResultRemedyKind {
Show 15 variants
McpNeedsAuth,
McpDisabled,
McpRequiredMissing,
AuthExpired,
AuthOverridden,
AuthMissingScope,
DesignNeedsAuthorization,
SandboxViolation,
OutsideReadsBlocked,
MemoryPaused,
FeatureDisabled,
PolicyDenied,
SpawnArgLimit,
StagedForReview,
Unknown(String),
}Expand description
What a host can fix for a tool result (ToolResultRemedy::kind).
Variants§
McpNeedsAuth
An MCP server needs its login completed.
McpDisabled
An MCP server is disabled in settings.
McpRequiredMissing
The agent definition requires MCP servers that are not connected.
AuthExpired
The named login has expired.
AuthOverridden
A host-injected credential overrides the named login.
AuthMissingScope
The named login lacks a scope the call needed.
DesignNeedsAuthorization
Claude Design needs its own authorization.
SandboxViolation
The command violated the sandbox policy.
OutsideReadsBlocked
A read outside the working directories was refused.
MemoryPaused
Memory is paused by /pause-memory.
FeatureDisabled
A feature is switched off; see ToolResultRemedy::cause.
PolicyDenied
An organization policy denies a feature; see
ToolResultRemedy::policy_kind.
SpawnArgLimit
The command’s exec image exceeded the OS argument limit.
StagedForReview
A settings-file write was held for the machine owner’s review.
Unknown(String)
A remedy kind not yet known to this version of the crate.