Beta Managed Agents Agent Custom Tool Use Event
BetaManagedAgentsAgentCustomToolUseEvent objectEvent emitted when the agent calls a custom tool. The session goes idle until the client sends a
user.custom_tool_resultevent with the result.type: "agent.custom_tool_use"id: stringUnique identifier for this event.
input: map[unknown]Input parameters for the tool call.
name: stringName of the custom tool being called.
processed_at: stringA timestamp in RFC 3339 format
format: date-time
session_thread_id: optional string or nullWhen set, this event was cross-posted from a subagent's thread to surface its custom tool use on the primary thread's stream. Empty on the thread's own events. Echo this on a
user.custom_tool_resultevent to route the result back.