sitcod3's picture
sync: backend/src -> Space (browser settings autosave + writable settings file)
6eb6c4e verified
Raw History Blame Contribute Delete
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}}" }
}
]
}