Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddComputerUseTool

Method
📦 Aspire.Hosting.Foundry v17.0.0-preview.1.26565.2
func (AzureCognitiveServicesProjectResource) AddComputerUseTool(
name string,
options ...*AddComputerUseToolOptions,
) ComputerToolResource

Signature

methodAddComputerUseToolbuilder
Adds a Computer Use tool to a Microsoft Foundry project, enabling agents to interact with a computer desktop by taking screenshots, moving the mouse, clicking, and typing.
AddComputerUseTool(
name string,
options ...*AddComputerUseToolOptions,
) ComputerToolResource
namestringThe name of the tool resource.
options...*AddComputerUseToolOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*AddComputerUseToolOptions argument.

DisplayWidth*float64The width of the display in pixels.
DisplayHeight*float64The height of the display in pixels.
Environment*stringThe environment identifier. Defaults to "browser".
ComputerToolResource

The resource builder.

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

Applies to

This method applies to the following types: