UNPKG

@hyperbrowser/agent

Version:

Hyperbrowsers Web Agent

2 lines (1 loc) 805 B
export declare const EXAMPLE_ACTIONS = "- Search: [\n {\"type\": \"textInput\", \"params\": {\"text\": \"search query\"}},\n {\"type\": \"keyPress\", \"params\": {\"key\": \"Enter\"}}\n]\n- Clicking on an element: [\n {\"type\": \"clickElement\", \"params\": {\"index\": 1}}\n]\n- Extracting content (if your goal is to find any information on a page): [\n {\"type\": \"extractContent\", \"params\": {\"goal\": \"what specifically you need to extract\"}}\n]\n- Forms: [\n {\"type\": \"inputText\", \"params\": {\"index\": 1, \"text\": \"first name\"}},\n {\"type\": \"inputText\", \"params\": {\"index\": 2, \"text\": \"last name\"}},\n {\"type\": \"inputText\", \"params\": {\"index\": 2, \"text\": \"job title\"}},\n {\"type\": \"clickElement\", \"params\": {\"index\": 3}}\n]";