Skip to content

Scenarios and window sync

A scenario is a short list of steps the app runs in each selected profile. It’s useful for routine tasks: opening websites to refresh sessions, going through pages, running a short script.

Steps

StepWhat it does
Open addressopens a page and waits for it to load (fully or just the document)
Pausewaits the given number of seconds
Run JavaScriptruns code on the current page in an isolated world (the DOM is visible, the page scripts’ variables are not); the result goes into the report. Needs the “Automation: run custom JavaScript” permission and turning it on in the app (python -m agent automation --eval on)
Any actionclick, type, wait, scroll, extract data — the same as page actions
Screenshotcaptures the visible part of the page (for scripts and AI agents)
Closecloses the scenario tab

How to run: select profiles in the table → More → Scenario & filling cookies… and choose:

  • Fill cookies on your sites: a list of websites (one address per line) and how many seconds to spend on each. The profile opens them one by one, like a person would, so cookies and history build up. You can replace the default list;
  • Custom steps: steps in JSON (see below);
  • how many profiles at once: 3 by default, 10 at most; more is faster but needs more memory;
  • without a window (background): on by default.

Profiles the scenario opened itself are closed at the end and their data goes to the cloud; profiles you already had open stay open. While a scenario is running, you can see how many profiles are done, and the error for each profile that failed.

A scenario skips a profile that someone else has open right now, since it’s locked.

Window sync repeats actions from one window (the leader) in others (the followers): clicks, keyboard input, and scrolling. It’s handy when you need to do the same thing manually in several profiles.

  1. Launch all the profiles you need on this PC.
  2. Select them in the table → More → Synchronize windows… → choose the leader profile (the other selected ones become followers) → Start synchronizing.
  3. Work in the leader window, and the actions are repeated in the others. A sync bar is shown above the table.
  4. Stop on the bar: the windows are independent again.

Input goes to the follower tab with the same address as the leader tab (if there is none, to the first tab).

Tips:

  • Open the same page and use the same window size in all profiles so clicks land in the same places.
  • Window sync repeats actions, not data: if the pages in the profiles differ (another language, a pop-up), the results may diverge.

The same features are available to scripts through the local API, the Python SDK (Agent().scenario(…)), and the MCP server for AI agents (python -m geksy.mcp, see SDK):

CallWhat it does
POST /api/v1/scenariosrun a scenario: {"workspace_id", "profile_ids", "steps", "concurrency", "headless", "keep_open"} → {"id"}
GET /api/v1/scenarios/{id}progress and results: {"state": "running" | "done", "total", "done", "results"}
POST /api/v1/syncturn on window sync: {"workspace_id", "leader", "followers"}
GET /api/v1/sync · DELETE /api/v1/syncstatus · turn off

Steps in JSON:

[
{"goto": "https://example.com", "wait": "load"},
{"sleep": 3},
{"action": "click", "args": {"selector": "button.accept"}},
{"eval": "document.title"},
{"close": true}
]

{"action": "…", "args": {…}} is any page action (click, type, fill, wait_for, scroll, extract…), with the same permissions and log. A failed step stops the scenario in that profile; the error code is in the report.

For more complex automation, use Playwright, Puppeteer, or Selenium.