Spaces:
Running
Running
Download src/browser_automation_agent/workflows/library/multi-tab-research.json from sitcod3/dracull-agent: direct link, hf CLI and curl.
- Browser
- Download file 1.82 kB
-
https://huggingface.co/spaces/sitcod3/dracull-agent/resolve/main/src/browser_automation_agent/workflows/library/multi-tab-research.json
- Command line
-
hf download hf://spaces/sitcod3/dracull-agent/src/browser_automation_agent/workflows/library/multi-tab-research.json
-
curl -L -o multi-tab-research.json https://huggingface.co/spaces/sitcod3/dracull-agent/resolve/main/src/browser_automation_agent/workflows/library/multi-tab-research.json
1.82 kB
| { | |
| "name": "multi-tab-research", | |
| "description": "Parallel-page research across tabs: open {{url1}} and {{url2}} in separate tabs, extract each page's text, list the tabs, switch back to the first, then close both. Demonstrates tab orchestration (tab_open/tab_list/tab_select/tab_close).", | |
| "engine": "chromium", | |
| "variables": { | |
| "url1": "first public https URL to research", | |
| "url2": "second public https URL to research" | |
| }, | |
| "steps": [ | |
| { | |
| "name": "open tab A", | |
| "tool": "tab_open", | |
| "args": { "url": "{{url1}}" }, | |
| "expect": { "data.url": "{{url1}}" }, | |
| "save": { "tab_a": "tab_id", "title_a": "data.title" } | |
| }, | |
| { | |
| "name": "extract tab A text", | |
| "tool": "extract_text", | |
| "args": { "max_chars": 2500 }, | |
| "save": { "text_a": "data.text" } | |
| }, | |
| { | |
| "name": "open tab B", | |
| "tool": "tab_open", | |
| "args": { "url": "{{url2}}" }, | |
| "expect": { "data.url": "{{url2}}" }, | |
| "save": { "tab_b": "tab_id", "title_b": "data.title" } | |
| }, | |
| { | |
| "name": "extract tab B text", | |
| "tool": "extract_text", | |
| "args": { "max_chars": 2500 }, | |
| "save": { "text_b": "data.text" } | |
| }, | |
| { | |
| "name": "list open tabs", | |
| "tool": "tab_list", | |
| "save": { "tabs": "data.tabs" } | |
| }, | |
| { | |
| "name": "switch back to tab A", | |
| "tool": "tab_select", | |
| "args": { "tab_id": "{{tab_a}}" } | |
| }, | |
| { | |
| "name": "screenshot tab A", | |
| "tool": "screenshot", | |
| "save": { "screenshot_a": "data.path" } | |
| }, | |
| { | |
| "name": "close tab A", | |
| "tool": "tab_close", | |
| "args": { "tab_id": "{{tab_a}}" } | |
| }, | |
| { | |
| "name": "close tab B", | |
| "tool": "tab_close", | |
| "args": { "tab_id": "{{tab_b}}" } | |
| } | |
| ] | |
| } | |