Back to Skills

functions

Deploy serverless browser automation as cloud functions using Browserbase. Use when the user wants to deploy browser automation to run on a schedule or cron, create a webhook endpoint for browser tasks, run automation in the cloud instead of locally, or asks about Browserbase Functions.

3,547stars226forksUpdated 6/12/2026

Security Assessment

Critical Risk(25/100)

Detected risks:

Remote Code Execution([REFERENCE.md] eval()
Secret Exposure([REFERENCE.md] API_KEY=, [SKILL.md] API_KEY=)
Sensitive File Access([REFERENCE.md] .env, [SKILL.md] .env)
Security Score25/100

About functions

The 'functions' skill enables developers to deploy serverless browser automation tasks directly in the cloud using Browserbase. It addresses the challenge of running browser automation locally by providing a scalable, cloud-based solution that can execute tasks on demand, on a schedule, or via webhook triggers. By using this skill, users can automate web interactions without managing their own infrastructure, simplifying deployment and maintenance while leveraging a fully managed environment for browser automation.

This skill provides a straightforward workflow for creating, testing, and deploying functions. Users can initialize a new function project, configure credentials, and define automation logic using Playwright and the Browserbase SDK. It supports local development with a live-reloading dev server, making testing and iteration seamless. Functions are structured to return JSON-serializable results, and the platform provides clear CLI commands for initialization, local testing, and deployment. Input parameters and session management are handled through the provided context objects, allowing flexible and secure automation.

The 'functions' skill is ideal for developers, QA engineers, or teams looking to automate web tasks in a reliable, serverless environment. Typical use cases include running browser tasks on a schedule, creating webhook endpoints for automated workflows, and offloading browser automation from local machines to the cloud. It is particularly useful for teams seeking to integrate automated web interactions into larger systems or for individual developers who want a simplified approach to cloud-based browser automation without the overhead of managing servers or environments.

FAQ

How do I start a new Browserbase function project?

Use the CLI command `browse functions init <name>` to initialize a new project. This creates the project folder with a template including package.json, index.ts, and a .env file for credentials.

Can I test my function locally before deploying?

Yes, you can start the local development server using `browse functions dev <file>`. The server supports auto-reloading and allows invocation of functions via HTTP POST requests.

What are the prerequisites for using this skill?

You need a Browserbase API key, which should be added to your .env file. The skill also relies on Node.js and package managers like pnpm to install dependencies.

What types of automation can I run with this skill?

Any browser automation supported by Playwright can be executed, such as navigating to URLs, extracting page content, or interacting with web elements, as long as the results are JSON-serializable.

Are there any limitations on invoking functions?

Functions must be deployed to Browserbase to be invoked via their cloud endpoints. Local testing is limited to the dev server, and you must retain the Function ID for cloud invocation.

All Files

3 files
REFERENCE.md3.8 KB
View
LICENSE.txt1.0 KB
View
SKILL.md2.7 KB
View

Install functions

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill