Skip to main content
Browser scripts are operator-side JavaScript functions that transform a task and its response strings into structured UI data. A script can render plaintext, tables, authenticated media, graphs, or nested tabs. Manage scripts under Extra Shortcuts → Browser Scripts. Payload types can supply defaults for their commands; operators can enable, disable, clone, and modify their own copies. Use Toggle BrowserScript on a task to switch between the transformed and raw response.

Function contract

Every script exports a function with task and responses arguments and must return an object:
Top-level keys can be combined: For example, display an operation file inline:
The legacy top-level screenshot, download, and search renderers were removed in v4. Return media for file previews/downloads, or use supported table cells and current routes. Custom fetches must add the current Bearer token; cookie-only media access no longer works.
Payload authors should register scripts from the payload type so new operators receive them. See Payload Type Browser Scripting for the complete table, graph, media, and tasking-button schemas.