@hyperbrowser/agent
Version:
Hyperbrowsers Web Agent
20 lines (19 loc) • 806 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EXAMPLE_ACTIONS = void 0;
exports.EXAMPLE_ACTIONS = `- Search: [
{"type": "textInput", "params": {"text": "search query"}},
{"type": "keyPress", "params": {"key": "Enter"}}
]
- Clicking on an element: [
{"type": "clickElement", "params": {"index": 1}}
]
- Extracting content (if your goal is to find any information on a page): [
{"type": "extractContent", "params": {"goal": "what specifically you need to extract"}}
]
- Forms: [
{"type": "inputText", "params": {"index": 1, "text": "first name"}},
{"type": "inputText", "params": {"index": 2, "text": "last name"}},
{"type": "inputText", "params": {"index": 2, "text": "job title"}},
{"type": "clickElement", "params": {"index": 3}}
]`;