addComputerUseTool
Method
interface AzureCognitiveServicesProjectResource { // ... omitted for brevity addComputerUseTool( name: string, displayWidth?: number, displayHeight?: number, environment?: string): ComputerToolResource;}Signature
method
addComputerUseTool builderAdds 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, displayWidth?: number, displayHeight?: number, environment?: string): ComputerToolResourceParameters
namestringThe name of the tool resource.displayWidth numberoptional= 1024The width of the display in pixels.displayHeight numberoptional= 768The height of the display in pixels.environmentstringoptional= browserThe environment identifier. Defaults to "browser".Returns
ComputerToolResource Applies to
This method applies to the following types: