# AgentToolCallEvent
Source: https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/agenttoolcallevent/
Documentation revision: 89a8f5e9d10cedcf0b30376d7846113f06f26120
SDK manifests in this build: @maelstrom-co/react@0.2.1, @maelstrom-co/client@0.2.1, @maelstrom-co/connectors@0.2.1, @maelstrom-co/protocol@0.2.1, @maelstrom-co/engine@0.2.1
These docs follow this source revision. Manifest versions do not prove release compatibility; verify the installed package exports before using an API.

Defined in: [packages/protocol/src/lib/agent-wire.ts:545](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/agent-wire.ts#L545)

A breadcrumb that the loop model called a tool.

The agent loop is experimental in 0.3 and may change in any minor release.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

## Properties

### callId

> **callId**: [`CallId`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/callid/)

Defined in: [packages/protocol/src/lib/agent-wire.ts:555](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/agent-wire.ts#L555)

Id that pairs this call with its `tool_result` event.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

* * *

### name

> **name**: `string`

Defined in: [packages/protocol/src/lib/agent-wire.ts:557](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/agent-wire.ts#L557)

Name of the tool that was called.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

* * *

### runId

> **runId**: [`RunId`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/runid/)

Defined in: [packages/protocol/src/lib/agent-wire.ts:551](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/agent-wire.ts#L551)

The Agent Run making the call.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

* * *

### turnId

> **turnId**: `string`

Defined in: [packages/protocol/src/lib/agent-wire.ts:553](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/agent-wire.ts#L553)

The model turn that issued the call.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

* * *

### type

> **type**: `"tool_call"`

Defined in: [packages/protocol/src/lib/agent-wire.ts:547](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/agent-wire.ts#L547)

Member discriminator.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

* * *

### version

> **version**: `1`

Defined in: [packages/protocol/src/lib/agent-wire.ts:549](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/agent-wire.ts#L549)

Agent wire version, always [AGENT\_WIRE\_VERSION](https://docs.maelstrom-ai.co/dev/reference/protocol/variables/agent_wire_version/).

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.
