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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"profile_id": "<profile_id>",
"tab_id": "<tab_id>",
"code": "<code>"
},
"name": "content_execute_script"
}
}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 |