FoundryToolboxResource
Handle
interface FoundryToolboxResource extends IExpressionValue, IManifestExpressionProvider, IResource, IResourceWithConnectionString, IValueProvider, IValueWithReferences { asExisting(): FoundryToolboxResource; publishAsExisting(): FoundryToolboxResource; runAsExisting(): FoundryToolboxResource; withAISearchTool( name: string, search: AzureSearchResource, indexName: string, description?: string): FoundryToolboxResource; withDescription(description: string): FoundryToolboxResource; withMcpTool( name: string, endpoint: string | EndpointReference | ReferenceExpression, options?: FoundryToolboxMcpToolOptions): FoundryToolboxResource; withWebSearchTool( name?: string, description?: string): FoundryToolboxResource;}7 members
Methods
Uses an existing Microsoft Foundry Toolbox during local runs and deployment.
asExisting(): FoundryToolboxResourceReturns
FoundryToolboxResource Reconciles a Microsoft Foundry Toolbox during local runs and uses an existing Toolbox during deployment.
publishAsExisting(): FoundryToolboxResourceReturns
FoundryToolboxResource Uses an existing Microsoft Foundry Toolbox during local runs and reconciles it during deployment.
runAsExisting(): FoundryToolboxResourceReturns
FoundryToolboxResource Adds an Azure AI Search tool definition to the Toolbox.
withAISearchTool( name: string, search: AzureSearchResource, indexName: string, description?: string): FoundryToolboxResourceParameters
namestringThe tool name.searchAzureSearchResource The Azure AI Search resource backing the tool.indexName stringThe search index name.descriptionstringoptionalAn optional description of the Azure AI Search tool.Returns
FoundryToolboxResource Sets the description persisted with each Toolbox version.
withDescription(description: string): FoundryToolboxResourceParameters
descriptionstringThe Toolbox description.Returns
FoundryToolboxResource Adds an MCP tool definition to the Toolbox.
withMcpTool( name: string, endpoint: string | EndpointReference | ReferenceExpression, options?: FoundryToolboxMcpToolOptions): FoundryToolboxResourceParameters
namestringThe tool name.endpointstring | EndpointReference | ReferenceExpression The MCP endpoint. A string URI, an `EndpointReference` pointing at a resource endpoint, or a `ReferenceExpression` for cases where the endpoint URL needs to be composed (for example, appending the MCP server's mount path or chaining through a public ingress like a dev tunnel).optionsFoundryToolboxMcpToolOptions optionalOptional MCP server metadata and approval policy.Returns
FoundryToolboxResource Adds a web search tool definition to the Toolbox.
withWebSearchTool( name?: string, description?: string): FoundryToolboxResourceParameters
namestringoptional= web-searchThe tool name.descriptionstringoptionalAn optional description of the web search tool.Returns
FoundryToolboxResource