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 |
|---|---|---|---|
jobId | text | Required | The scrape job ID from data.metadata.scrapeId in a previous scrape response. |
code | text | Required | Code to execute in the scrape-bound browser sandbox. Length: 1-100000 characters. |
language | select | Optional | Language of the code to execute. Use node for JavaScript or bash for agent-browser CLI commands. Firecrawl default: node. (options: Node, Python, Bash) |
timeout | number | Optional | Execution timeout in seconds. Firecrawl range: 1-300. Default: 30. |
origin | text | Optional | Optional origin label for Firecrawl telemetry. |
Outputs
| Name | Type | Description |
|---|---|---|
statusCode | number | HTTP status code. |
body | object | Firecrawl Interact response. |
success | yes/no | Whether the code executed successfully. |
stdout | text | Standard output from the code execution. |
result | text | Return value from sandbox execution (last expression value for Node.js, final page snapshot for prompt). |
stderr | text | Standard error output from the code execution. |
exitCode | number | Exit code of the executed process. |
killed | yes/no | Whether the process was killed due to timeout. |
error | text | Error message if the code raised an exception. |