---
title: "toolCall(id:name:action:)"
framework: foundationmodels
role: symbol
role_heading: Type Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: "foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/action-swift.struct/toolcall(id:name:action:)"
---

# toolCall(id:name:action:)

## Declaration

```swift
static func toolCall(id: String, name: String, action: LanguageModelExecutorGenerationChannel.ToolCalls.ToolCall.Action) -> LanguageModelExecutorGenerationChannel.ToolCalls.Action
```

## See Also

### Tool calling for action constants

- [updateMetadata(_:)](foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/action-swift.struct/updatemetadata(_:).md)
