

# ViewPort
<a name="API_ViewPort"></a>

The configuration that defines the dimensions of a browser viewport in a browser session. The viewport determines the visible area of web content and affects how web pages are rendered and displayed. Proper viewport configuration ensures that web content is displayed correctly for the agent's browsing tasks.

## Contents
<a name="API_ViewPort_Contents"></a>

 ** height **   <a name="BedrockAgentCore-Type-ViewPort-height"></a>
The height of the viewport in pixels. This value determines the vertical dimension of the visible area. Valid values range from 600 to 1080 pixels.  
Type: Integer  
Valid Range: Minimum value of 240. Maximum value of 2160.  
Required: Yes

 ** width **   <a name="BedrockAgentCore-Type-ViewPort-width"></a>
The width of the viewport in pixels. This value determines the horizontal dimension of the visible area. Valid values range from 800 to 1920 pixels.  
Type: Integer  
Valid Range: Minimum value of 320. Maximum value of 3840.  
Required: Yes

## See Also
<a name="API_ViewPort_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/bedrock-agentcore-2024-02-28/ViewPort) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/bedrock-agentcore-2024-02-28/ViewPort) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/bedrock-agentcore-2024-02-28/ViewPort) 