CustomJS

Developer toolsAPI key

CustomJS renders HTML to PDF, takes screenshots, scrapes sites, runs JavaScript and hosts HTML pages.

8 actions

ActionEffectData handledScope
customjs_html_to_pdfRenders HTML (optionally a Nunjucks template filled with data) to a PDF in Chromium and returns it as base64readPersonal data
customjs_screenshotCaptures a web page as a PNG in Chromium, optionally after clicking, typing, waiting or scrolling, and returns it as base64readPersonal data
customjs_scrape_websiteRuns a browser on a site: give a plain-language goal for the AI agent, or exact commands, and get extracted data, text, HTML, markdown or a screenshot linkreadPersonal data
customjs_run_javascriptRuns JavaScript code in CustomJS with an input value and returns what the code returnswritePersonal data
customjs_run_stored_functionCalls a function saved in the CustomJS editor by its script id with JSON inputwritePersonal data
customjs_list_pagesLists the hosted HTML pages in the workspace with their ids and live URLsreadGeneral
customjs_create_pagePublishes an HTML document as a new hosted page and returns its live URLwritePersonal data
customjs_update_pageReplaces the HTML of a hosted page; its URL stays the samewritePersonal data