Firecrawl icon

Firecrawl

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

Interact → Execute Interaction

AI-generated

Summary

Resume the browser session for a prior Firecrawl scrape and interact with the page using a natural-language instruction or browser code. Choose Prompt mode to have the AI agent perform a focused task, or Code mode to run Playwright JavaScript or Python, or agent-browser Bash commands; the session resumes at the page state captured by the scrape.

Inputs

  • Scrape ID (required) — ID from a previous Scrape operation, available at data.metadata.scrapeId.
  • Mode — Defaults to Prompt. Prompt mode takes a focused natural-language task; Code mode takes code matching the selected language.
  • Prompt (required) — In Prompt mode, describe one task for the agent, such as clicking, typing, scrolling, or extracting data. Maximum 10,000 characters.
  • Code (required) — In Code mode, provide valid code for the browser sandbox, up to 100,000 characters. Node and Python use the preconfigured Playwright page object; Bash uses agent-browser CLI commands.
  • Language — In Code mode, selects Node (JavaScript), Python, or Bash; defaults to Node.
  • Timeout (Seconds) — Maximum interaction runtime, from 1 to 300 seconds; defaults to 30. If exceeded, the process is killed and the response includes killed=true.

Output shape

A response from the Firecrawl interaction endpoint.

The provided source pack omits implementation bodies, so it does not establish the exact response fields or shape.

Links

Discussion