Skip to content

web_resize

Resize the browser viewport to the given dimensions.

Use to test responsive CSS at different breakpoints (e.g., 375x812 for phone, 768x1024 for tablet). Does NOT change User-Agent or device emulation flags — pages that UA-sniff still see desktop Chrome. For full mobile emulation set the device’s profile at creation time, not via this tool.

Source

  • Kind: class-backed
  • Class: xyz.block.trailblaze.playwright.tools.PlaywrightNativeResizeTool

Contract

  • Visible to LLM: yes (surface_to_llm: true)
  • Recordable: yes (is_recordable: true)
  • Host-only: no (requires_host: false)

Input schema

Required parameters

  • widthInteger Width of the viewport in CSS pixels. Must be positive.
  • heightInteger Height of the viewport in CSS pixels. Must be positive.

Optional parameters

  • reasoningString

Output

Returns: string (opaque text content)

Typed result schemas (kind: query | action, MCP structuredContent) are not yet carried by the resolved manifest — this section will gain detail when that lands.