---
title: LanguageModelExecutorGenerationChannel.ToolCalls.ToolCall.Action
framework: foundationmodels
role: symbol
role_heading: Structure
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/toolcall/action-swift.struct
---

# LanguageModelExecutorGenerationChannel.ToolCalls.ToolCall.Action

An operation that can be performed on a tool call.

## Declaration

```swift
struct Action
```

## Overview

Overview Action is an enum-like struct; construct one with a leading-dot factory such as appendArguments(_:tokenCount:).

## Topics

### Tool call action constants

- [appendArguments(_:tokenCount:)](foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/toolcall/action-swift.struct/appendarguments(_:tokencount:).md)
- [updateMetadata(_:)](foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/toolcall/action-swift.struct/updatemetadata(_:).md)

## Relationships

### Conforms To

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

## See Also

### Handling a tool call

- [action](foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/toolcall/action-swift.property.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)
