<!--
{
  "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/ArgumentsFragment",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation Models",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:16FoundationModels38LanguageModelExecutorGenerationChannelV9ToolCallsV0H4CallV17ArgumentsFragmentV"
  },
  "title" : "LanguageModelExecutorGenerationChannel.ToolCalls.ToolCall.ArgumentsFragment"
}
-->

# LanguageModelExecutorGenerationChannel.ToolCalls.ToolCall.ArgumentsFragment

Argument text appended to this tool call.

```
struct ArgumentsFragment
```

## Overview

The first event for a given id opens the tool call (using `name` from the enclosing
[`LanguageModelExecutorGenerationChannel.ToolCalls.ToolCall`](/documentation/FoundationModels/LanguageModelExecutorGenerationChannel/ToolCalls/ToolCall)); subsequent events append additional argument text.

## Topics

### Handling the arguments fragment

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

The argument text to append to the tool call.

[`var tokenCount: Int`](/documentation/FoundationModels/LanguageModelExecutorGenerationChannel/ToolCalls/ToolCall/ArgumentsFragment/tokenCount)

The number of tokens the argument text carries.

## 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)