← Tough Tongue AICONTENT HISTORY

Update to Tough Tongue AI

Snapshot Oct 24, 2026 · 12:57 UTC · version 2.0.1

Collection source: downloaded plugin package.

WHAT CHANGED

First saved snapshot

No earlier snapshot is available to establish a change.

Save Tough Tongue AI and check future changes in Following.

Up to 3 plugins free · no card required.

Compare saved observations

Download comparison JSON
Full technical diff · 0 changed fields
Full snapshot data
{
  "description": "Scripts deterministic browser demo steps (tools_config.tools.browser.tool_settings.steps) on an existing Tough Tongue AI Scenario, so its voice agent clicks exact XPath selectors instead of improvising. Signs the demo browser in with ttai:authenticate_browser, converts a pasted browser recording or a walked-through flow into steps, saves them with ttai:update_scenario without losing the saved login, and repairs steps that click the wrong element. Use when the user says \"record browser demo steps\", \"turn my recording into steps\", \"make my demo deterministic\", \"the demo clicks the wrong thing\", or \"log the demo browser in\". Not for creating the Scenario (ttai-agent) or analyzing sessions (ttai-session-analyst).",
  "included_files": [
    {
      "relative_path": "agents/openai.yaml",
      "size_in_bytes": 500
    },
    {
      "relative_path": "references/recording-to-steps.md",
      "size_in_bytes": 7985
    },
    {
      "relative_path": "references/selector-guide.md",
      "size_in_bytes": 7198
    },
    {
      "relative_path": "references/steps-format.md",
      "size_in_bytes": 5742
    },
    {
      "relative_path": "references/worked-example.md",
      "size_in_bytes": 5338
    }
  ],
  "name": "ttai-browser-demo-builder",
  "skill_md_contents": "---\nname: ttai-browser-demo-builder\ndescription: >-\n  Scripts deterministic browser demo steps\n  (tools_config.tools.browser.tool_settings.steps) on an existing Tough\n  Tongue AI Scenario, so its voice agent clicks exact XPath selectors instead\n  of improvising. Signs the demo browser in with ttai:authenticate_browser,\n  converts a pasted browser recording or a walked-through flow into steps,\n  saves them with ttai:update_scenario without losing the saved login, and\n  repairs steps that click the wrong element. Use when the user says \"record\n  browser demo steps\", \"turn my recording into steps\", \"make my demo\n  deterministic\", \"the demo clicks the wrong thing\", or \"log the demo browser\n  in\". Not for creating the Scenario (ttai-agent) or analyzing sessions\n  (ttai-session-analyst).\nwhen_to_use: >-\n  Also when a demo session reports a failed or misfiring browser step.\n---\n\n# Browser Demo Builder\n\nLog in → capture the flow (recording or walkthrough) → convert to steps →\nread-merge-write → verify. Output: named steps the voice agent replays with\n`runBrowserCommand` (`command: \"step\"`), exact selectors first, no AI per click.\n\n## How steps replay (respect this)\n\n- Actions run in order. No wait, no `goto`, no branching inside a step.\n- Each action replays its exact `selector` with its `method` and `arguments`.\n- An action that fails gets ONE retry: the `description` is used as a prompt to\n  rediscover the element. If that fails too, the step aborts and the agent is\n  told which action broke.\n- XPath targets are scrolled into view and shown with an animated cursor before\n  the action. Use XPath for every selector.\n- `%name%` placeholders in `selector` or `arguments` are filled from the step\n  call's `variables`. A step with placeholders is rejected without them.\n- Live demo sessions run at **1280×720** and open at `initialUrl`. Without\n  `initialUrl`, no browser opens.\n- One browser command runs at a time; a second is rejected until the first\n  reports back.\n\n## Hard rules\n\n1. **Never write `tool_settings` partially.** `ttai:update_scenario` replaces\n   the browser tool's `tool_settings` object whole. Omitting `contextId` deletes\n   the saved login. Every write = read → merge → write the complete object.\n   Details: [references/steps-format.md](references/steps-format.md).\n2. **Never write `contextId` yourself.** `ttai:authenticate_browser` creates it\n   and stores it on the Scenario. Carry the existing value through unchanged.\n3. **No credentials anywhere.** Not in steps, descriptions, arguments, or\n   `ai_instructions`. Scenario config is plaintext. Sign-in goes through the\n   saved login only.\n4. **No positional XPath.** Never ship `/html[1]/body[1]/div[3]/…` (the\n   recorder's fallback). Rewrite to text-, label-, or role-anchored XPath:\n   [references/selector-guide.md](references/selector-guide.md).\n5. **Recordings are evidence, not steps.** Never paste recorder output into\n   `steps` unconverted.\n\n## Phase 0 — Scope and target\n\n- Workspace: reuse a verified org; otherwise call `ttai:get_workspace_info` (`organizations`) and\n  pass `org_id` on every call for an organization-owned Scenario. Omit `org_id`\n  for personal Scenarios. Never pass a slug.\n- Scenario: reuse a known ID; otherwise `ttai:list_resources(scenarios, query: \"<title>\")`. A\n  title is not an ID.\n- Read it: `ttai:get_resource(scenarios, id)`. Confirm\n  `tools_config.tools.browser.should_register` is `true` and note `initialUrl`,\n  `contextId`, and existing `steps`.\n- No Scenario yet, or the browser tool is off? Hand off to the `ttai-agent`\n  skill to create or configure it, then return here.\n\n## Phase 1 — Log in (login demos only)\n\n1. Call\n   `ttai:authenticate_browser` with one `req` object: `scenario_id`,\n   `initial_url?`, `viewport`, `enable_recording_tool`.\n   Needs EDIT access to the Scenario.\n   - `initial_url` defaults to the saved `initialUrl`.\n   - `viewport`: `\"compact\"` (1280×800) is closest to the live 1280×720; the\n     default `\"wide\"` (1920×1080) can render a different responsive layout than\n     the demo will see.\n   - `enable_recording_tool: true` adds a **Workflows** tab for recording.\n2. Hand the user the returned `embed_url`. The link expires in 20 minutes\n   (`expires_at`); the live browser it opens closes after about 7 minutes, so\n   open it when ready.\n3. User signs in, then clicks **Save & close session**. That click saves the\n   login. Closing the tab without it saves nothing.\n4. Re-read the Scenario and confirm `tool_settings.contextId` exists. The call\n   creates `contextId` before anyone signs in, so its presence does not prove a\n   saved login: confirm the user clicked **Save & close session**.\n\n## Phase 2 — Capture the flow\n\n**Recording-first (preferred).** Sources:\n\n- The **Workflows** tab in the `authenticate_browser` embed.\n- The browser tool configuration in the Tough Tongue AI dashboard (start\n  recording → stop → review; can also be sent to Edit with AI as a Markdown\n  note).\n\nNo MCP tool reads recordings. Ask the user to copy the review's **View as\ndocument** Markdown (or the event list) and paste it. In the embed, recorded\nevents are discarded on Close — copy first.\n\n**Hand-authored (alternative).** Interview, then walk the flow and harvest\nselectors with your browser automation or the user's DevTools. Interview in one\nround, skipping what is known:\n\n1. Target URL and whether login is needed (→ Phase 1).\n2. The flow screen by screen, as a salesperson would click it.\n3. Demo data: fix every value; use `%placeholders%` only for per-session values.\n4. Drop flaky parts: date pickers, auto-assigned records, optional panels.\n\nHarvest in the same logged-in state the demo sees, at a 1280-wide window.\n\n## Phase 3 — Convert to steps\n\nFollow the playbook:\n[references/recording-to-steps.md](references/recording-to-steps.md). Core\nmoves:\n\n- Merge consecutive `input` events on one field into one `fill` (last value).\n- `keydown` Enter → `press` with `[\"Enter\"]` right after the field's `fill`.\n- `navigation` → step boundary (steps cannot navigate; the agent uses `goto`).\n- Drop `scroll`, `note`, `wait`, `dom-snapshot`; drop `scrollTo` unless\n  scrolling a panel's own scrollbar.\n- Rewrite every selector from the candidates into stable XPath.\n\nStep design:\n\n- Short steps (typically 3–6 actions), each ending at a screen change.\n- Name steps by intent: `open_reports`, `filter_by_status`.\n- Each `description` names its element standalone (it is the retry prompt).\n- Wire `ai_instructions`: a browser-tool block, one phase per step, ≤3 `capture`\n  milestones, fallback steps for state-dependent screens. Templates in\n  [references/steps-format.md](references/steps-format.md).\n\n## Phase 4 — Read, merge, write\n\n1. Re-read with `ttai:get_resource(scenarios)` right before writing (the login\n   may have changed since Phase 0).\n2. Copy `tool_settings` whole. Add or replace only your step keys. Keep\n   `contextId`, `initialUrl`, and unrelated steps byte-for-byte.\n3. `ttai:update_scenario` with one `scenario` object: `id`,\n   `tools_config.tools.browser.tool_settings` (complete), and `ai_instructions`\n   if changed.\n\n## Phase 5 — Verify\n\n1. Re-read. Confirm `contextId` unchanged and every step key present.\n2. Ask the user to run one test session end-to-end.\n3. A failed step names its broken action: fix that one selector, then repeat\n   Phase 4. For selector bugs (e.g. \"always clicks the first card\"), start at\n   the forbidden patterns in the selector guide.\n\n## Checklist\n\n- [ ] `contextId` identical before and after every write\n- [ ] Every selector is `xpath=…`, unique on its screen, non-positional, no\n      hashed classes\n- [ ] No step crosses a navigation; typically 3–6 actions each\n- [ ] Descriptions static and standalone; no credentials anywhere\n- [ ] `%placeholders%` only where truly per-session, and listed in instructions\n- [ ] ≤3 capture milestones; fallback steps wired for variant screens\n- [ ] User ran one live test session successfully\n\n## Key Files\n\n- [references/steps-format.md](references/steps-format.md) — schema, methods,\n  read-merge-write payload, `ai_instructions` templates\n- [references/selector-guide.md](references/selector-guide.md) — XPath subset,\n  forbidden patterns, DevTools checks\n- [references/recording-to-steps.md](references/recording-to-steps.md) —\n  event-to-action mapping with a full conversion\n- [references/worked-example.md](references/worked-example.md) — a complete\n  four-step demo with instructions\n"
}

SHA-256 of public snapshot: 0a0866d68340c143c27618364a4f3efdb358327906bf3bc0dba3f79d0c65fb4a