DocsReact CoretoolsToolApprovalRequest
Package: @hexos/react-core

Represents a pending tool approval request on the frontend.

Created when an approval-required TransportEvent arrives from the server. Contains the tool call metadata needed to display an approval dialog to the user.

Related: useToolApproval manages these requests, ToolApprovalDialog renders the approval UI, ApprovalDecision is the user’s response.

interface ToolApprovalRequest {
    toolCallId: string;
    toolName: string;
    args: unknown;
    agentId: string;
    timestamp: Date;
}

toolCallId

string

toolName

string

args

unknown

agentId

string

timestamp

Date