Skip to content

Interface: AgentPermissionOption

Defined in: packages/sdk/src/agents-service.ts:816

Beta

One choice offered by an AgentPermissionRequest — pass its AgentPermissionOption.optionId to AgentPermissionRequest.respond.

Properties

optionId

ts
readonly optionId: string;

Defined in: packages/sdk/src/agents-service.ts:817

Beta


name

ts
readonly name: string;

Defined in: packages/sdk/src/agents-service.ts:820

Beta

Label to show on the button, e.g. "Allow", "Allow for this session", "Reject".


kind

ts
readonly kind: string;

Defined in: packages/sdk/src/agents-service.ts:824

Beta

The protocol's coarse category for the option, e.g. "allow_once", "allow_always", "reject_once" — for styling a set of buttons consistently. Tolerate unknown values.