# AzureCognitiveServicesProjectResource.AddSharePointTool

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

## Definition

```go
type AzureCognitiveServicesProjectResource interface {
    // ... omitted for brevity
    AddSharePointTool(
        name string,
        projectConnectionIds []string,
    ) SharePointToolResource
}
```

## Signature

```go
AddSharePointTool(
    name string,
    projectConnectionIds []string,
) SharePointToolResource
```

## Parameters

- `name` (`string`) -- The name of the tool resource.
- `projectConnectionIds` (`[]string`) -- The Foundry project connection IDs for the SharePoint sites.

## Returns

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

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

## Defined on

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