---
title: "toolCall(id:name:action:)"
framework: foundationmodels
role: symbol
role_heading: Type Method
path: "foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/action-swift.enum/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.enum/updatemetadata(_:)-swift.type.method.md)
- [updateUsage(input:output:)](foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/action-swift.enum/updateusage(input:output:).md)
