# FoundryToolboxResource

- Kind: `class`
- Package: [Aspire.Hosting.Foundry](/reference/api/csharp/aspire.hosting.foundry.md)
- Version: `13.6.0-preview.1.26478.8`
- Namespace: `Aspire.Hosting.Foundry`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Foundry/Toolbox/FoundryToolboxResource.cs)
- Inherits: `Resource`
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IResource`, `IResourceWithConnectionString`, `IValueProvider`, `IValueWithReferences`

Represents a Microsoft Foundry Toolbox endpoint associated with a Foundry project.

## Definition

```csharp
namespace Aspire.Hosting.Foundry;

public sealed class FoundryToolboxResource
    : Aspire.Hosting.ApplicationModel.Resource,
      Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## ATS metadata

### ATS export

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

## Remarks

Toolboxes are Foundry data-plane resources with no ARM or Bicep representation. Aspire reconciles the desired tool definitions after the parent project is provisioned, reuses the current default version when its configuration matches, and promotes a new immutable version when the configuration changes.

## Constructors

- [FoundryToolboxResource(string, AzureCognitiveServicesProjectResource, string?)](/reference/api/csharp/aspire.hosting.foundry/foundrytoolboxresource/constructors.md#constructor-string-azurecognitiveservicesprojectresource-string) -- Initializes a new instance of the [FoundryToolboxResource](/reference/api/csharp/aspire.hosting.foundry/foundrytoolboxresource.md) class.

## Properties

- [ApiVersion](/reference/api/csharp/aspire.hosting.foundry/foundrytoolboxresource/properties.md#apiversion) : `string` `get; set` -- Gets or sets the API version used by the Toolbox MCP endpoint.
- [ConnectionStringExpression](/reference/api/csharp/aspire.hosting.foundry/foundrytoolboxresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get` -- Gets the connection string expression for the Toolbox MCP endpoint.
- [DeployedVersion](/reference/api/csharp/aspire.hosting.foundry/foundrytoolboxresource/properties.md#deployedversion) : `StaticValueProvider<string>` `get` -- Gets the version selected by the most recent reconciliation.
- [Description](/reference/api/csharp/aspire.hosting.foundry/foundrytoolboxresource/properties.md#description) : `string` `get; set` -- Gets or sets the description persisted with each Toolbox version.
- [Metadata](/reference/api/csharp/aspire.hosting.foundry/foundrytoolboxresource/properties.md#metadata) : `IDictionary<string, string>` `get; init` -- Gets metadata persisted with each Toolbox version.
- [Parent](/reference/api/csharp/aspire.hosting.foundry/foundrytoolboxresource/properties.md#parent) : [AzureCognitiveServicesProjectResource](/reference/api/csharp/aspire.hosting.foundry/azurecognitiveservicesprojectresource.md) `get` -- Gets the parent Microsoft Foundry project resource.
- [UriExpression](/reference/api/csharp/aspire.hosting.foundry/foundrytoolboxresource/properties.md#uriexpression) : `ReferenceExpression` `get` -- Gets the Toolbox MCP endpoint URI expression.
- [Version](/reference/api/csharp/aspire.hosting.foundry/foundrytoolboxresource/properties.md#version) : `string?` `get; set` -- Gets or sets the Toolbox version used by consumers.
