---
title: "init(name:description:)"
framework: vision
role: symbol
role_heading: Initializer
path: "vision/ocrtool/init(name:description:)"
---

# init(name:description:)

Creates a tool for recognizing text in images.

## Declaration

```swift
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.
