<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/OCRTool/init(name:description:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Vision",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:24_Vision_FoundationModels7OCRToolV4name11descriptionACSSSg_AFtcfc"
  },
  "title" : "init(name:description:)"
}
-->

# init(name:description:)

Creates a tool for recognizing text in images.

```
init(name: String? = nil, description: String? = nil)
```

## Parameters

`name`

The name of the tool as exposed to the model. If not provided, a default name is used.

`description`

A description of what the tool does, used by the model to determine when to call it. If not provided, a default description is used.

---

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)