# Interface ToolPayload

Payload for tool invocation events.

interface ToolPayload {
type: "tool";
phase: "completed" | "invoked";
toolName: string;
success?: boolean;
errorMessage?: string;
}

- Defined in packages/nexus-agents/src/observability/swarm-observer-payloads.ts:50

##### Index

### Properties

type
phase
toolName
success?
errorMessage?

## Properties

### `Readonly` type

type: "tool"

- Defined in packages/nexus-agents/src/observability/swarm-observer-payloads.ts:51

### `Readonly` phase

phase: "completed" | "invoked"

- Defined in packages/nexus-agents/src/observability/swarm-observer-payloads.ts:52

### `Readonly` toolName

toolName: string

- Defined in packages/nexus-agents/src/observability/swarm-observer-payloads.ts:53

### `Optional` `Readonly` success

success?: boolean

- Defined in packages/nexus-agents/src/observability/swarm-observer-payloads.ts:54

### `Optional` `Readonly` errorMessage

errorMessage?: string

- Defined in packages/nexus-agents/src/observability/swarm-observer-payloads.ts:55