<!--
{
  "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/ToolOutput",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation Models",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:16FoundationModels10TranscriptV10ToolOutputV"
  },
  "title" : "Transcript.ToolOutput"
}
-->

# Transcript.ToolOutput

A tool output provided back to the model.

```
struct ToolOutput
```

## Topics

### Creating a tool output

[`init(id: String, toolName: String, segments: [Transcript.Segment])`](/documentation/FoundationModels/Transcript/ToolOutput/init(id:toolName:segments:))

Creates a tool output that provides the result of a tool call back to the model.

### Inspecting a tool output

[`var id: String`](/documentation/FoundationModels/Transcript/ToolOutput/id)

A unique id for this tool output.

[`var segments: [Transcript.Segment]`](/documentation/FoundationModels/Transcript/ToolOutput/segments)

Segments of the tool output.

[`var toolName: String`](/documentation/FoundationModels/Transcript/ToolOutput/toolName)

The name of the tool that produced this output.

## Relationships

### Conforms To

[`Escapable`](/documentation/Swift/Escapable)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Identifiable`](/documentation/Swift/Identifiable)

[`Copyable`](/documentation/Swift/Copyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

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)