Yielded by the message stream when a can_use_tool control request
arrives and no handler (can_use_tool / on_tool_request) is configured.
The caller must eventually call ClaudeSDKClient$approve_tool() or
$deny_tool() with the request_id to unblock the CLI.
Usage
PermissionRequestMessage(
request_id,
tool_name,
tool_input,
tool_use_id = NULL,
agent_id = NULL,
suggestions = NULL
)Examples
msg <- PermissionRequestMessage(
request_id = "req1",
tool_name = "Bash",
tool_input = list(command = "ls /tmp")
)
msg$tool_name
#> [1] "Bash"