Actions31
- Account Actions
- Agent Actions
- Browser Actions
- Crawling Actions
- Extract (Legacy) Actions
- Interact Actions
- Map & Search Actions
- Scraping Actions
Browser → Execute Browser Code
AI-generatedSummary
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.