Skip to content

ToolCallRecord

ToolCallRecord = object

Normalized record for one tool call observed during a harness run.

const call: ToolCallRecord = {
name: "lookupInvoice",
arguments: { invoiceId: "inv_123" },
result: { refundable: true },
};

optional arguments?: Record<string, JsonValue>

JSON-safe tool arguments after provider/runtime normalization.


optional durationMs?: number

Tool execution duration in milliseconds.


optional error?: object

Normalized tool error when execution failed.

[key: string]: JsonValue | undefined

message: string

optional type?: string


optional finishedAt?: string

ISO timestamp for the end of tool execution.


optional id?: string

Provider or runtime tool-call id when one is available.


optional metadata?: Record<string, JsonValue>

Extra JSON-safe tool metadata for reporters and custom judges.


name: string

Tool name as exposed to the agent or application runtime.


optional result?: JsonValue

JSON-safe tool result returned by the application tool.


optional startedAt?: string

ISO timestamp for the start of tool execution.