Spaces:
Running
Running
Download src/browser_automation_agent/workflows/library/page-edit.json from sitcod3/dracull-agent: direct link, hf CLI and curl.
- Browser
- Download file 1.84 kB
-
https://huggingface.co/spaces/sitcod3/dracull-agent/resolve/main/src/browser_automation_agent/workflows/library/page-edit.json
- Command line
-
hf download hf://spaces/sitcod3/dracull-agent/src/browser_automation_agent/workflows/library/page-edit.json
-
curl -L -o page-edit.json https://huggingface.co/spaces/sitcod3/dracull-agent/resolve/main/src/browser_automation_agent/workflows/library/page-edit.json
1.84 kB
| { | |
| "name": "page-edit", | |
| "description": "Safe in-page editing: navigate to Wikipedia, resolve the search box from an observe snapshot by role, type {{text}} into it WITHOUT submitting, then press Escape. Demonstrates observe->find->type/press_key editing while the consequential submit stays gated.", | |
| "engine": "chromium", | |
| "variables": { | |
| "text": "text to type into the search box, e.g. 'dracull browser'" | |
| }, | |
| "steps": [ | |
| { | |
| "name": "open the editing tab", | |
| "tool": "tab_open", | |
| "args": { | |
| "url": "https://en.wikipedia.org/" | |
| }, | |
| "expect": { | |
| "data.url": "wikipedia.org" | |
| }, | |
| "save": { | |
| "edit_tab": "tab_id" | |
| } | |
| }, | |
| { | |
| "name": "snapshot the interactive elements", | |
| "tool": "observe", | |
| "save": { | |
| "snapshot_id": "data.snapshot_id" | |
| } | |
| }, | |
| { | |
| "name": "type into the search box (no submit — submit needs user approval)", | |
| "tool": "type", | |
| "find": { | |
| "role": "textbox", | |
| "text": "wikipedia" | |
| }, | |
| "args": { | |
| "text": "{{text}}", | |
| "submit": false | |
| }, | |
| "save": { | |
| "typed_text": "data.text" | |
| } | |
| }, | |
| { | |
| "name": "dismiss the suggestion dropdown", | |
| "tool": "press_key", | |
| "args": { | |
| "key": "Escape" | |
| } | |
| }, | |
| { | |
| "name": "verify the box holds the typed text", | |
| "tool": "observe", | |
| "save": { | |
| "final_snapshot": "data.snapshot_id" | |
| } | |
| }, | |
| { | |
| "name": "screenshot the edited page", | |
| "tool": "screenshot", | |
| "save": { | |
| "screenshot": "data.path" | |
| } | |
| }, | |
| { | |
| "name": "close the editing tab", | |
| "tool": "tab_close", | |
| "args": { | |
| "tab_id": "{{edit_tab}}" | |
| } | |
| } | |
| ] | |
| } | |