Firecrawl icon

Firecrawl

Scrape, crawl, map, search, and extract structured data from websites using Firecrawl API

Browser → Execute Browser Code

AI-generated

Summary

Executes user-provided code in an active Firecrawl browser session. Choose Node.js, Python, or Bash, then use the configured Playwright page object or the agent-browser CLI to automate browser tasks.

Inputs

  • Session ID (required) — Active browser session ID, obtained from Create Browser Session.
  • Code (required) — Code to run in the session’s sandboxed browser environment (1–100,000 characters).
  • Language — Execution language: Node.js (JavaScript), Python, or Bash; defaults to Node.js.
  • Timeout (Seconds) — Maximum execution time from 1 to 300 seconds; defaults to 30. If exceeded, the process is killed and the response includes killed=true.

Output shape

A single API response item.

The operation sends the session ID in the URL and code, language, and timeout in the request body. The supplied source pack does not show response handling, so the exact response fields are unspecified.

Links

Discussion