sitcod3's picture
sync: backend/src -> Space (browser settings autosave + writable settings file)
6eb6c4e verified
Raw History Blame Contribute Delete
1.34 kB
{
"name": "capture-report",
"description": "Full page capture: open {{url}}, wait for it to settle, extract the page text (4000 char cap), screenshot it, and close the tab. The run report (JSON) plus the screenshot are the artifacts — point an LLM at them for summarization.",
"engine": "chromium",
"variables": { "url": "public https URL to capture" },
"steps": [
{
"name": "open the capture tab",
"tool": "tab_open",
"save": { "capture_tab": "tab_id" }
},
{
"name": "load the page",
"tool": "navigate",
"args": { "url": "{{url}}" },
"expect": { "data.url": "{{url}}" },
"save": { "final_url": "data.url", "page_title": "data.title" }
},
{
"name": "wait for the document body",
"tool": "wait_for",
"args": { "condition": "selector", "selector": "body", "timeout_ms": 8000 }
},
{
"name": "extract the page text",
"tool": "extract_text",
"args": { "max_chars": 4000 },
"save": { "page_text": "data.text" }
},
{
"name": "screenshot the page",
"tool": "screenshot",
"save": { "screenshot": "data.path" }
},
{
"name": "close the capture tab",
"tool": "tab_close",
"args": { "tab_id": "{{capture_tab}}" }
}
]
}