Skip to content

Interface: AgentPermissionOption ​

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

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:903

Beta


name ​

ts
readonly name: string;

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

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:910

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.