Loading...
Loading...
Fetch Confluence Cloud pages through an authenticated Chrome browser session when API tokens do not work, especially with Microsoft/SSO. Use to archive Confluence page JSON, storage/view HTML, browser HTML, attachments, CQL search results, or page descendants into a raw wiki folder.
npx skill4agent add aholbreich/agent-skills confluence-browser-fetchraw/scripts/confluence-browser-fetch.js <URL|PAGE-ID> [...] [options]--site URL Atlassian site, e.g. https://example.atlassian.net
--raw-dir DIR output raw directory
--space KEY Confluence space key for --title search
--title TITLE resolve and fetch page by exact title
--cql CQL search Confluence and fetch matching pages
--descendants fetch descendant pages
--max-search-results N limit CQL result fetches
--max-attachment-size S skip attachment files larger than S (default 5mb; use unlimited to disable)
--force re-fetch even when local page version is current
--no-skip-unchanged disable version/timestamp skip check
--retries N retry transient HTTP failures
--request-timeout SEC per-request timeout
--no-attachments skip attachments
--no-browser-html skip rendered browser HTMLjira-browser-fetchjira-updateconfluence-browser-fetchconfluence-updatebitbucket-browser-fetch~/.local/share/atlassian-browser-chrome9223Reusing Chrome DevTools on port 9223Found existing tab for <host>CHROME=/path/to/launcherATLASSIAN_CHROME_PROFILEATLASSIAN_CHROME_DEBUG_PORT*_CHROME_PROFILE*_CHROME_DEBUG_PORT--cqlraw/confluence/...wiki/AGENTS.mdscripts/confluence-browser-fetch.js \
"https://example.atlassian.net/wiki/spaces/ABC/pages/123456/Page+Title" \
--site https://example.atlassian.net \
--raw-dir ./rawscripts/confluence-browser-fetch.js \
123456 \
--site https://example.atlassian.net \
--raw-dir ./raw \
--descendantsscripts/confluence-browser-fetch.js \
--site https://example.atlassian.net \
--raw-dir ./raw \
--cql 'space = ABC and type = page and text ~ "billing"'raw/confluence/<SPACE>/<PAGE-ID>-<slug>/
├── page.json # Confluence REST content with storage/view HTML and metadata
├── page.storage.html # Confluence storage format
├── page.view.html # REST-rendered view body
├── page.browser.html # browser page HTML, if enabled
├── metadata.json # fetch metadata
├── attachments.json # attachment manifest, including skipped large-file references
└── attachments/ # downloaded attachments under max-size thresholdraw/confluence-browser-fetch-run.jsonmkdir -p ~/.local/bin
ln -sf ~/.pi/agent/skills/confluence-browser-fetch/scripts/confluence-browser-fetch.js ~/.local/bin/confluence-browser-fetch