Skip to content
Prompty

PermissionRequestedPayload

Payload for permission request events — a host is asked to approve an action.

---
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
requestId: perm_abc123
toolCallId: call_abc123
permission: tool.execute
target: shell
promptRequest: Allow shell to run tests?
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

The following types are composed within PermissionRequestedPayload: