---
title: tool
framework: foundationmodels
role: symbol
role_heading: Instance Property
path: foundationmodels/languagemodelsession/toolcallerror/tool
---

# tool

The tool that produced the error.

## Declaration

```swift
var tool: any Tool
```
