---
title: "label(_:)"
framework: foundationmodels
role: symbol
role_heading: Instance Method
path: "foundationmodels/attachment/label(_:)"
---

# label(_:)

Assigns a label to an attachment.

## Declaration

```swift
func label(_ label: String) -> Attachment<Content>
```

## Parameters

- `label`: A string that identifies this attachment.

## Mentioned in

Analyzing images with multimodal prompting

## Discussion

Discussion Labels help the model identify specific attachments when making tool calls. Attachment(image)     .label("profile-photo")
