PermissionRequestedPayload
Payload for permission request events — a host is asked to approve an action.
Class Diagram
Section titled “Class Diagram”---
title: PermissionRequestedPayload
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class PermissionRequestedPayload {
+string requestId
+string toolCallId
+string permission
+string target
+dictionary details
+string promptRequest
+dictionary policy
+RedactionMetadata redaction
}
class RedactionMetadata {
+boolean sanitized
+RedactedField[] fields
+string policy
}
PermissionRequestedPayload *-- RedactionMetadata
Yaml Example
Section titled “Yaml Example”requestId: perm_abc123toolCallId: call_abc123permission: tool.executetarget: shellpromptRequest: Allow shell to run tests?Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| requestId | string | Stable permission request identifier |
| toolCallId | string | Associated tool call identifier, when the permission gates a tool call |
| permission | string | Permission/action name being requested |
| target | string | Resource or tool the permission applies to |
| details | dictionary | Additional host-specific permission details |
| promptRequest | string | Human-readable prompt or rationale that can be shown to an approval UI |
| policy | dictionary | Policy metadata used to evaluate or explain the permission request |
| redaction | RedactionMetadata | Redaction state for sensitive request fields |
Composed Types
Section titled “Composed Types”The following types are composed within PermissionRequestedPayload: