Beta Managed Agents Agent Tool Use Event
BetaManagedAgentsAgentToolUseEvent objectEvent emitted when the agent invokes a built-in agent tool.
type: "agent.tool_use"id: stringUnique identifier for this event.
input: map[unknown]Input parameters for the tool call.
name: stringName of the agent tool being used.
processed_at: stringA timestamp in RFC 3339 format
format: date-time
evaluated_permission: optional "allow" or "ask" or "deny"AgentEvaluatedPermission enum
"allow""ask""deny"
evaluation: optional BetaManagedAgentsAgentToolEvaluationNames the resolved permission_policy that produced evaluated_permission, and under auto carries the judgement. Open union: clients must tolerate unknown variants.
BetaManagedAgentsAgentToolEvaluationAlwaysAllow objectThe resolved permission_policy was always_allow; accompanies evaluated_permission "allow".
type: "always_allow"
BetaManagedAgentsAgentToolEvaluationAlwaysAsk objectThe resolved permission_policy was always_ask; accompanies evaluated_permission "ask".
type: "always_ask"
BetaManagedAgentsAgentToolEvaluationAuto objectThe resolved permission_policy was auto: the server judged this invocation individually.
type: "auto"evaluated_permission: BetaManagedAgentsAgentAutoEvaluatedPermissionThe server's per-invocation judgement under the auto permission policy. Its type always equals the event's top-level evaluated_permission. Open union: clients must tolerate unknown variants.
BetaManagedAgentsAgentAutoEvaluatedPermissionAllow objectThe server judged the invocation safe to execute without client approval.
type: "allow"
BetaManagedAgentsAgentAutoEvaluatedPermissionAsk objectThe server reached no judgement; the invocation is held for client approval.
type: "ask"reason_code: stringThe judgement's grounds in registry-bound terms, for client branching and audit rather than end-user display. Open registry; currently "indeterminate" (no judgement was reached). Clients must tolerate values outside this set.
maxLength: 64
BetaManagedAgentsAgentAutoEvaluatedPermissionDeny objectThe server judged the invocation high-risk; it does not execute and a synthetic error tool result is appended.
type: "deny"reason_code: stringThe judgement's grounds in registry-bound terms. Open registry; currently "high_risk" (judged high-risk; the call does not run). Clients must tolerate values outside this set.
maxLength: 64
session_thread_id: optional string or nullWhen set, this event was cross-posted from a subagent's thread to surface its permission request on the primary thread's stream. Empty on the thread's own events. Echo this on a
user.tool_confirmationevent to route the approval back.