← Files BugBugARCHIVED FILE

skills/bugbug-steps-authoring/steps/execute.md

473 Bytes · Dec 3, 2026 · 18:22 UTC

↓ Download file

# execute

## Description

Execute custom JavaScript in the page context.

Common payload fields are documented in [Common step fields](_common-fields.md).

## Required Fields

| Field | Type | Description |
| --- | --- | --- |
| `code` | `string` | JavaScript source code to execute. |

## Optional Fields

| Field | Type | Description |
| --- | --- | --- |
| `selectorsPresets` | `array<object>` | Element selector presets required by element-targeting steps variants. |

SHA-256: ac5a632b79ce62354308c18f12dc4ea92b4f99df4583b48d3b38118d82f2bcde