<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoundationModels",
  "identifier" : "/documentation/FoundationModels/Transcript/ToolCall/init(id:toolName:arguments:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation Models",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:16FoundationModels10TranscriptV8ToolCallV2id8toolName9argumentsAESS_SSAA16GeneratedContentVtcfc"
  },
  "title" : "init(id:toolName:arguments:)"
}
-->

# init(id:toolName:arguments:)

Creates a tool call that invokes a tool with the arguments you provide.

```
init(id: String, toolName: String, arguments: GeneratedContent)
```

## Parameters

`id`

A unique identifier for the tool call.

`toolName`

The name of the tool to invoke.

`arguments`

The arguments to pass to the invoked tool.

---

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)