<!--
{
  "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/Event/toolCalls(entryID:action:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Foundation Models",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:16FoundationModels38LanguageModelExecutorGenerationChannelV5EventV9toolCalls7entryID6actionAESSSg_AC04ToolJ0V6ActionVtFZ"
  },
  "title" : "toolCalls(entryID:action:)"
}
-->

# toolCalls(entryID:action:)

A tool-calls event addressed to a transcript entry.

```
static func toolCalls(entryID: String? = nil, action: LanguageModelExecutorGenerationChannel.ToolCalls.Action) -> LanguageModelExecutorGenerationChannel.Event
```

## Parameters

`entryID`

The tool-calls entry this event targets. Pass `nil` to let the
framework coalesce consecutive tool-calls events into a single entry;
pass an explicit id to anchor the event to a specific entry.

`action`

The operation to perform on the tool-calls entry.

---

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)