# AzureCognitiveServicesProjectResource.AddBingGroundingTool

- Module: [Aspire.Hosting.Foundry](/reference/api/go/aspire.hosting.foundry.md)
- Defined on: [AzureCognitiveServicesProjectResource](/reference/api/go/aspire.hosting.foundry/azurecognitiveservicesprojectresource.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `method`

Adds a Bing Grounding tool to a Microsoft Foundry project, enabling agents to ground their responses using Bing Search results.

## Remarks

After creating the tool, call one of the `WithReference` overloads
to link it to a Bing Search resource.

## Definition

```go
type AzureCognitiveServicesProjectResource interface {
    // ... omitted for brevity
    AddBingGroundingTool(name string) BingGroundingToolResource
}
```

## Signature

```go
AddBingGroundingTool(name string) BingGroundingToolResource
```

## Parameters

- `name` (`string`) -- The name of the tool resource.

## Returns

[`BingGroundingToolResource`](/reference/api/go/aspire.hosting.foundry/binggroundingtoolresource.md) -- The resource builder.

Returns a handle; failures surface later via `Err()`.

## Defined on

- [AzureCognitiveServicesProjectResource](/reference/api/go/aspire.hosting.foundry/azurecognitiveservicesprojectresource.md) -- `handle`
