PermissionDecision
Decision returned by a permission resolver.
Class Diagram
Section titled “Class Diagram”---
title: PermissionDecision
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class PermissionDecision {
+string requestId
+string toolCallId
+string permission
+boolean approved
+string reason
+dictionary result
}
Yaml Example
Section titled “Yaml Example”requestId: perm_abc123toolCallId: call_abc123permission: tool.executeapproved: truereason: user_approvedProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| requestId | string | Stable permission request identifier |
| toolCallId | string | Associated tool call identifier, when the permission gated a tool call |
| permission | string | Permission/action name that was decided |
| approved | boolean | Whether the requested permission was approved |
| reason | string | Decision reason, if available |
| result | dictionary | Host-specific decision result, such as a durable approval token or denial details |