# BingGroundingToolResource

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

## 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
  ```
