<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoundationModels",
  "identifier" : "/documentation/FoundationModels/LanguageModelExecutorGenerationChannel/ToolCalls/ToolCall",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation Models",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:16FoundationModels38LanguageModelExecutorGenerationChannelV9ToolCallsV0H4CallV"
  },
  "title" : "LanguageModelExecutorGenerationChannel.ToolCalls.ToolCall"
}
-->

# LanguageModelExecutorGenerationChannel.ToolCalls.ToolCall

A per-tool-call event payload.

```
struct ToolCall
```

## Overview

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

## Topics

### Handling a tool call

[`var action: LanguageModelExecutorGenerationChannel.ToolCalls.ToolCall.Action`](/documentation/FoundationModels/LanguageModelExecutorGenerationChannel/ToolCalls/ToolCall/action-swift.property)

The action to perform.

[`struct Action`](/documentation/FoundationModels/LanguageModelExecutorGenerationChannel/ToolCalls/ToolCall/Action-swift.struct)

An operation that can be performed on a tool call.

[`var id: String`](/documentation/FoundationModels/LanguageModelExecutorGenerationChannel/ToolCalls/ToolCall/id)

The identifier for the tool call.

[`var name: String`](/documentation/FoundationModels/LanguageModelExecutorGenerationChannel/ToolCalls/ToolCall/name)

The name of the tool call.

[`struct ArgumentsFragment`](/documentation/FoundationModels/LanguageModelExecutorGenerationChannel/ToolCalls/ToolCall/ArgumentsFragment)

Argument text appended to this tool call.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)