# SharePointToolResource

- Kind: `class`
- Package: [Aspire.Hosting.Foundry](/reference/api/csharp/aspire.hosting.foundry.md)
- Version: `13.4.0-preview.1.26281.18`
- Namespace: `Aspire.Hosting.Foundry`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Foundry/ToolResources/ConfigOnlyToolDefinitions.cs)
- Inherits: [FoundryToolResource](/reference/api/csharp/aspire.hosting.foundry/foundrytoolresource.md)

A Foundry tool resource that grounds an agent's responses using SharePoint data.

## Definition

```csharp
namespace Aspire.Hosting.Foundry;

public sealed class SharePointToolResource
    : Aspire.Hosting.Foundry.FoundryToolResource
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `Aspire.Hosting.Foundry/SharePointToolResource`

## Remarks

SharePoint connections must be configured in the Foundry project beforehand. This tool references existing connections by their Foundry project connection IDs.

## Constructors

- [SharePointToolResource(string, AzureCognitiveServicesProjectResource, string[])](/reference/api/csharp/aspire.hosting.foundry/sharepointtoolresource/constructors.md#constructor-string-azurecognitiveservicesprojectresource-string) -- Creates a new instance of the [SharePointToolResource](/reference/api/csharp/aspire.hosting.foundry/sharepointtoolresource.md) class.

## Properties

- [ProjectConnectionIds](/reference/api/csharp/aspire.hosting.foundry/sharepointtoolresource/properties.md#projectconnectionids) : `IList<string>` `get` -- Gets the Foundry project connection IDs for the SharePoint sites.

## Methods

- [ToAgentToolAsync(CancellationToken)](/reference/api/csharp/aspire.hosting.foundry/sharepointtoolresource/methods.md#toagenttoolasync-cancellationtoken) : `Task<ResponseTool>` -- Converts this tool definition into the SDK `Responses.ResponseTool` representation.
