# addSharePointTool

- 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 a SharePoint grounding tool to a Microsoft Foundry project, enabling agents to search data from SharePoint sites configured as Foundry project connections.

## Definition

```typescript
interface AzureCognitiveServicesProjectResource {
  // ... omitted for brevity
  addSharePointTool(
    name: string,
    projectConnectionIds: string[]): SharePointToolResource
}
```

## Parameters

- `name` (`string`)
- `projectConnectionIds` (`string[]`)

## Returns

[SharePointToolResource](/reference/api/typescript/aspire.hosting.foundry/sharepointtoolresource.md) `builder`

## Applies to

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