UNPKG

@hyperbrowser/agent

Version:

Hyperbrowsers Web Agent

2 lines (1 loc) 1.58 kB
export declare const INPUT_FORMAT = "=== Final Goal ===\n[The final goal that needs to be accomplished]\n=== Open Tabs ===\n[The open tabs]\n=== Current URL ===\n[The current URL]\n=== Variables ===\n[Variables that can be used in the task]\n- Variables are referenced using <<name>> syntax\n- Each variable has a name and description\n- Variables persist across actions and can be referenced in subsequent steps\n- Format: <<name>> - {description}\n=== Elements ===\n[A list of the elements on the page in the following format]\n[encodedId] type: name attributes\n- type: HTML element type (button, input, etc.)\n- encodedId: Element identifier in format \"frameIndex-nodeId\" (e.g., \"0-1234\")\n- name: The accessible name or label of the element\n- attributes: All HTML attributes of the element like type, name, value, class, etc. This can include:\n * Data attributes\n * ARIA attributes\n * Custom attributes\n * Any other valid HTML attributes\n * The attributes provide important context about the element's behavior, accessibility, and styling\n- When choosing an element for `actElement`, reference the exact `encodedId` shown here (for example, `\"0-5125\"`).\n=== Previous Actions ===\n[The previous steps of the task]\n=== Page Screenshot === (only in visual modes)\n- A screenshot of the current page\n- In visual-debug mode, interactive elements are highlighted with their encodedId\n=== Page State === (only in visual modes)\n- Pixels below: Number of pixels scrolled below current viewport\n- Pixels above: Number of pixels scrolled above current viewport";