pub type AgentMcpToolUseEvent = AgentToolUseEvent;Available on crate feature
managed-agents-preview only.Expand description
agent.mcp_tool_use: agent invokes an MCP server tool.
Aliased Type§
pub struct AgentMcpToolUseEvent {
pub id: Option<String>,
pub processed_at: Option<String>,
pub name: String,
pub input: Value,
pub evaluated_permission: Option<AgentEvaluatedPermission>,
pub session_thread_id: Option<String>,
}Fields§
§id: Option<String>Envelope.
processed_at: Option<String>Server-side recording timestamp.
name: StringTool name.
input: ValueTool input.
evaluated_permission: Option<AgentEvaluatedPermission>Permission verdict the platform applied. Ask means the client
must reply with a user.tool_confirmation event before the tool
runs. None when the tool’s permission policy is allow or the
field isn’t reported.
session_thread_id: Option<String>Set on multi-agent sessions when the request originated in a
sub-agent thread. Echo this on the corresponding
OutgoingUserEvent::ToolConfirmation or
OutgoingUserEvent::CustomToolResult reply so the platform
routes it back to the waiting thread. Absent for primary-thread
events.
Research-preview: only populated when multi-agent threads are in use.