---
title: LanguageModelExecutorGenerationChannel.ToolCalls.ToolCall
framework: foundationmodels
role: symbol
role_heading: Structure
path: foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/toolcall
---

# LanguageModelExecutorGenerationChannel.ToolCalls.ToolCall

A per-tool-call event payload.

## Declaration

```swift
struct ToolCall
```

## Overview

Overview The id and name route the event to a specific tool call within the ToolCalls entry. Theaction names the mutation.

## Topics

### Handling a tool call

- [action](foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/toolcall/action-swift.property.md)
- [LanguageModelExecutorGenerationChannel.ToolCalls.ToolCall.Action](foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/toolcall/action-swift.enum.md)
- [id](foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/toolcall/id.md)
- [name](foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/toolcall/name.md)
- [LanguageModelExecutorGenerationChannel.ToolCalls.ToolCall.ArgumentsFragment](foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/toolcall/argumentsfragment.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Handling tool calls

- [action](foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/action-swift.property.md)
- [LanguageModelExecutorGenerationChannel.ToolCalls.Action](foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/action-swift.enum.md)
- [entryID](foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/entryid.md)
