# BingGroundingToolResource

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

A Foundry tool resource that grounds an agent's responses using Bing Search.

## Definition

```typescript
interface BingGroundingToolResource
  extends IResource,
    IFoundryTool {
  withReference(bingReference: ParameterResource): BingGroundingToolResource;
}
```

## Methods

- [withReference](/reference/api/typescript/aspire.hosting.foundry/binggroundingtoolresource/withreference.md) -- `method` -- Links a Bing Grounding tool to a Bing Search resource or connection.
    ```typescript
  withReference(bingReference: ParameterResource): BingGroundingToolResource
  ```
