Skip to content

PermissionEntry

Defined in: permissions.ts:214

A single permission entry in object form.

The host parses permissions from either string[] (bare scopes) or { scope, reason }[] objects. The optional reason (max 120 chars) is shown as a tooltip in the approval sheet and settings UI.

scope: PermissionScope

Defined in: permissions.ts:216

The permission scope string (e.g., “filesystem.read”).


optional reason?: string

Defined in: permissions.ts:218

Optional brief reason why this permission is needed (max 120 chars).