content_execute_script
Executes JavaScript code in a specified Firefox tab using a profile and tab ID, enabling page inspection or automation; optional per-origin approval may be required.
Instructions
Execute JavaScript code in a tab
An optional extension setting requires user approval per tab/origin. Each approval prompt expires after 60 seconds; queued tabs wait in turn.
profile_id is required: obtain it from profiles_list. All object IDs are local to that profile; never reuse them in another profile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | JavaScript code to execute | |
| tab_id | Yes | ID of the tab to execute script in | |
| profile_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |