Skip to content

Interface: ToolExecutionTrace

@providerprotocol/agents


@providerprotocol/agents / index / ToolExecutionTrace

Defined in: src/state/types.ts:25

A single tool execution trace from a sub-agent.

Captures the details of a tool invocation during sub-agent execution, enabling debugging, auditing, and replay of agent behavior.

Conforms to UAP specification Section 8.8 for sub-agent tracing.

SubagentExecutionTrace for the parent trace containing these records

arguments: Record<string, unknown>

Defined in: src/state/types.ts:33

Arguments passed to the tool as key-value pairs


optional duration: number

Defined in: src/state/types.ts:42

Execution duration in milliseconds


optional isError: boolean

Defined in: src/state/types.ts:39

Whether the tool execution resulted in an error


result: string

Defined in: src/state/types.ts:36

Stringified result returned by the tool


optional toolCallId: string

Defined in: src/state/types.ts:30

Unique identifier for this tool call, used for correlation with tool results


toolName: string

Defined in: src/state/types.ts:27

Name of the tool that was invoked