# Customjs

CustomJS is a code-first automation platform that enables seamless integration of custom JavaScript logic into various systems and technologies, allowing users to extend applications by writing functions for tasks like sending emails, generating PDFs, or updating CRM data fields.

- **Category:** developer tools
- **Auth:** API_KEY
- **Tools:** 6
- **Triggers:** 0
- **Slug:** `CUSTOMJS`
- **Version:** 20260211_00

## Tools

### Authenticate CustomJS API Key

**Slug:** `CUSTOMJS_AUTHENTICATE_API_KEY`

Authenticate and validate a CustomJS API key. Returns workspace details, request limits, and decoded JWT token information including user email. Use this to verify an API key is valid before making other CustomJS API calls.

### Convert HTML to PDF

**Slug:** `CUSTOMJS_CONVERT_HTML_TO_PDF`

Convert HTML content to a PDF document. Use this tool to generate PDF files from raw HTML markup. Supports: - Complete HTML documents or fragments - Inline CSS styling (colors, fonts, tables, borders, backgrounds) - Unicode characters and special symbols - Multi-page documents Returns raw PDF bytes suitable for file storage or download.

### Convert HTML to PNG

**Slug:** `CUSTOMJS_CONVERT_HTML_TO_PNG`

Tool to convert HTML string to PNG image. Use when you need a PNG from HTML after preparing your markup.

### Capture webpage screenshot

**Slug:** `CUSTOMJS_CREATE_SCREENSHOT`

Tool to capture a screenshot of a webpage. Use when you need a visual snapshot of a URL.

### Merge multiple PDFs into one

**Slug:** `CUSTOMJS_MERGE_PDFS`

Merge multiple PDF files from URLs into a single PDF document. Use this tool when you need to combine two or more PDF documents into one. The PDFs are merged in the order provided. All input URLs must be publicly accessible. Returns a downloadable merged PDF file.

### Run Puppeteer Script

**Slug:** `CUSTOMJS_RUN_PUPPETEER_SCRIPT`

Execute a Puppeteer script in a headless browser and capture a screenshot. Use this tool for browser automation tasks such as navigating to URLs, interacting with page elements, extracting data, or capturing visual snapshots of web pages. The script runs in a sandboxed Puppeteer environment with access to a 'page' object.
