Skip to content

Interact with a Page

Firecrawl

Firecrawl

Interact with a Page

Execute code in the browser sandbox associated with a previous Firecrawl scrape.

ActionAI Tool

Inputs

Name Type Required Description
jobIdtextRequiredThe scrape job ID from data.metadata.scrapeId in a previous scrape response.
codetextRequiredCode to execute in the scrape-bound browser sandbox. Length: 1-100000 characters.
languageselectOptionalLanguage of the code to execute. Use node for JavaScript or bash for agent-browser CLI commands. Firecrawl default: node. (options: Node, Python, Bash)
timeoutnumberOptionalExecution timeout in seconds. Firecrawl range: 1-300. Default: 30.
origintextOptionalOptional origin label for Firecrawl telemetry.

Outputs

Name Type Description
statusCodenumberHTTP status code.
bodyobjectFirecrawl Interact response.
successyes/noWhether the code executed successfully.
stdouttextStandard output from the code execution.
resulttextReturn value from sandbox execution (last expression value for Node.js, final page snapshot for prompt).
stderrtextStandard error output from the code execution.
exitCodenumberExit code of the executed process.
killedyes/noWhether the process was killed due to timeout.
errortextError message if the code raised an exception.