Build a Reproducible Screenshot Test Set for GPT-6 Astra

Start an Astra screenshot trial at the CometAPI request boundary: can the application preserve one frame, read a proposed coordinate, and map it back to the right control? Keep clicking disabled until those steps are inspectable.

CometAPI documents POST /v1/responses, multimodal input and the model identifier gpt-6-astra. Its reference warns that fields vary by model. The candidate request below has not been sent to CometAPI. It uses OpenAI’s original-detail screenshot guidance; exact support through this route remains unverified.

Target: POST https://api.cometapi.com/v1/responses. Replace the image placeholder with the base64 encoding of a synthetic PNG before any authorized route test:

{
  "model": "gpt-6-astra",
  "input": [{
    "role": "user",
    "content": [
      {"type": "input_text", "text": "Frame f1 is 960x600. Return only JSON with frame_id, x and y for the center of Search. Propose coordinates only; execute nothing."},
      {"type": "input_image", "image_url": "data:image/png;base64,<synthetic PNG>", "detail": "original"}
    ]
  }]
}

This first step asks for text, with no computer or function tool enabled. The application therefore has a narrow job: validate a proposed location. CometAPI’s generic multimodal documentation does not prove that Astra accepts this exact image shape, preserves detail, or supports a subsequent computer-use loop.

Build the fixture from a 1440 × 900 disposable page resized to 960 × 600. Record frame ID, image dimensions, viewport dimensions, device scale, browser zoom and crop origin. Use a full-frame image with no crop for this case. In the original viewport, define Search’s target region as x=690..750, y=430..470.

A mock, model-style text response is:

{"frame_id":"f1","x":480,"y":300}

Check the response envelope before parsing that text: record the returned model, status and output item types. Continue only with the qualified model identity, status: completed and a text message. Collect the message’s output_text content; the SDK’s response.output_text is a convenience accessor. A refusal, missing text, unexpected model or incomplete response is a separate outcome.

The local validator requires exactly frame_id, x, y, integer coordinates within 960 × 600, and the currently active frame ID. It then maps (480,300) to (720,450) using the documented resize, which lands inside the target region. That arithmetic assumes the action handler uses viewport coordinates; physical display pixels require a separately recorded transform. A returned frame ID is a consistency check, not proof that the model actually grounded its answer in that image.

Exercise rejection cases locally: stale frame f0, string coordinates, an extra key, an out-of-bounds point and a valid point outside Search. Also serialize and deserialize the candidate request, checking that input_image, image_url, detail, model and image dimensions survive the application adapter. These checks validate local code and mock data; they establish no gateway performance.

Only a later authorized CometAPI test can record actual request-field acceptance and returned model/status. Keep real mouse execution as a separate qualification stage with fresh observations and outcome checks. This split helps distinguish an input adapter defect, an invalid text proposal and an execution error before any production UI is involved.

The no-crop parent fixture can be extended with a separate crop case. Record crop origin and resize ratio independently. In a synthetic example, a crop begins at original-frame pixel (100, 50) and is displayed at half size. A point (120, 90) in that displayed crop maps to (340, 230) in the original frame: undo the resize, then add the crop offset.

This arithmetic stops at original-image pixels; mapping them to the action handler’s coordinates may require another documented transform. OpenAI’s computer-use guidance calls for remapping after downscaling. Preserve frame identity, crop rectangle, resize dimensions, and transformation order. Keep clicking disabled while checking this extension locally. It is an additional image-pipeline fixture, not a replacement for the parent’s full-frame case or a measured Astra result.

A separate two-scale visual-quality fixture could keep clicking disabled and compare the same labeled control before and after resizing. Suppose a synthetic 1440 × 900 image has a target rectangle from (600, 360) to (840, 540). At half size, that rectangle becomes (300, 180) to (420, 270). These are proposed fixture labels, not predictions or the parent example’s target region.

Record whether the label remains readable, whether a thin border disappears, and whether adjacent controls remain distinguishable. Then compare proposed coordinates against the mapped rectangles. Geometrically correct scaling can coexist with lost visual detail. OpenAI’s screenshot guidance supplies the integration boundary; this unexecuted comparison adds a visual-inspection dimension without claiming that either scale performs better through CometAPI.