# addAzureFunctionTool

- Module: [Aspire.Hosting.Foundry](/reference/api/typescript/aspire.hosting.foundry.md)
- Version: `13.4.0-preview.1.26281.18`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire)

Adds an Azure Function tool to a Microsoft Foundry project, enabling agents to invoke a serverless Azure Function with queue-based input/output bindings.

## Definition

```typescript
interface AzureCognitiveServicesProjectResource {
  // ... omitted for brevity
  addAzureFunctionTool(
    name: string,
    functionName: string,
    description: string,
    parametersJson: string,
    inputQueueEndpoint: string,
    inputQueueName: string,
    outputQueueEndpoint: string,
    outputQueueName: string): AzureFunctionToolResource
}
```

## Parameters

- `name` (`string`)
- `functionName` (`string`)
- `description` (`string`)
- `parametersJson` (`string`)
- `inputQueueEndpoint` (`string`)
- `inputQueueName` (`string`)
- `outputQueueEndpoint` (`string`)
- `outputQueueName` (`string`)

## Returns

[AzureFunctionToolResource](/reference/api/typescript/aspire.hosting.foundry/azurefunctiontoolresource.md) `builder`

## Applies to

- [AzureCognitiveServicesProjectResource](/reference/api/typescript/aspire.hosting.foundry/azurecognitiveservicesprojectresource.md)
