Interface PermissionCheckResult

Represents the result of a permission check performed by the IToolPermissionManager.

PermissionCheckResult

interface PermissionCheckResult {
    isAllowed: boolean;
    reason?: string;
    details?: Record<string, any>;
}

Properties

isAllowed: boolean

true if the tool execution is permitted based on the evaluated context, false otherwise.

reason?: string

An optional human-readable string explaining why the permission was granted or denied. This is useful for logging, debugging, or providing feedback to users/developers.

details?: Record<string, any>

An optional object for any additional details or metadata related to the permission decision (e.g., specific capability missing, subscription feature lacking, policy rule invoked).