> ## Documentation Index
> Fetch the complete documentation index at: https://docs.r28.ai/charter/llms.txt
> Use this file to discover all available pages before exploring further.

# scrape_interact

> Execute code in the browser sandbox associated with a scrape job.

<div className="tool-route"><span className="tool-row-method" data-method="POST">POST</span><code>{"https://api.firecrawl.dev/v2/scrape/{jobId}/interact"}</code></div>

```python firecrawl_scrape_interact.py theme={null}
from charter.packs import firecrawl

result = await firecrawl.scrape_interact.ainvoke({"jobId": ..., "code": ...})
```

## Path parameters

<div className="reference-table">
  | Field                                                         | Type     | Description       |
  | ------------------------------------------------------------- | -------- | ----------------- |
  | `jobId` <span className="required" title="required">\*</span> | `string` | The scrape job ID |
</div>

## Body

<div className="reference-table">
  | Field                                                        | Type                           | Description                                                                                                                                         |
  | ------------------------------------------------------------ | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `code` <span className="required" title="required">\*</span> | `string`                       | Code to execute in the scrape-bound browser sandbox <span className="field-constraints">min length 1; max length 100000</span>                      |
  | `language`                                                   | `"python" \| "node" \| "bash"` | Language of the code to execute. Use `node` for JavaScript or `bash` for agent-browser CLI commands. The server applies 'node' when this is absent. |
  | `timeout`                                                    | `integer`                      | Execution timeout in seconds. The server applies 30 when this is absent. <span className="field-constraints">≥ 1; ≤ 300</span>                      |
  | `origin`                                                     | `string`                       | Optional origin label used for execution telemetry                                                                                                  |
</div>
