---
title: "call(arguments:)"
framework: foundationmodels
role: symbol
role_heading: Instance Method
path: "foundationmodels/tool/call(arguments:)"
---

# call(arguments:)

A language model will call this method when it wants to leverage this tool.

## Declaration

```swift
@concurrent func call(arguments: Self.Arguments) async throws -> Self.Output
```

## Mentioned in

Expanding generation with tool calling Analyzing images with multimodal prompting

## Discussion

Discussion If errors are throw in the body of this method, they will be wrapped in a LanguageModelSession.ToolCallError and rethrown at the call site of respond(to:options:). note: This method may be invoked concurrently with itself or with other tools.

## See Also

### Calling a tool

- [Arguments](foundationmodels/tool/arguments.md)
- [Output](foundationmodels/tool/output.md)
