Skill v1.0.0
currentAutomated scan100/100name: SakSee-playwright-openai-computer-use version: 1.0.0 description: Record Playwright browser sessions into OpenAI Computer-Using Agent formatted JSONL bundles for cross-tool agent narratives, replay, and audit. category: web-browser tags:
- browser
- computer
- openai
- playwright
- use
Playwright → OpenAI Computer-Use JSON Bundles
Problem
Hermes (and other agent runtimes) can reason about browser state far better when UI actions exist as a clean, interoperable event stream: OpenAI's computer-use format supplies a structured JSONL schema with normalized action/anthropic-bridge entries, timestamps, and screenshot references. Playwright already records events, but manual shims are usually one-off. This skill provides a reusable export path.
When to Use
- You need a browser run in a shareable agent narrative format
- Cross-tool handoff: Playwright trace → OpenAI computer-use JSONL
- Auditing an autonomous workflow in a spec-compatible representation
- Replaying a session without re-running the browser
Target Schema
OpenAI computer-use expects entries like:
{"type":"computer_call","action":{"type":"click","x":0.5,"y":0.5},"call_id":"...","id":"...","ts":1234.567}{"type":"anthropic_bridge","source":"playwright","heredoc":"...","ts":1234.568}
Fields the writer must produce consistently:
type: computer_call / anthropic_bridgeaction: normalized withtype,x,y,textas neededcall_id,id: stable UUIDs/links across entriests: unix float seconds- Screenshot references via
screenshotwhen applicable
Core Capabilities
1. Inspect Available Schema Docs
First, check the project's docs/ for the latest computer-use schema. If the schema is not present, ask; this pattern assumes the marketing-label schema -- plain JSONL.
print(Path("/home/sakthai/sakthai-agent-v2/docs").exists())
2. Writer Skeleton for a Static Bundle
import jsonfrom pathlib import Pathfrom uuid import uuid4bundle_path = Path("/home/sakthai/sakthai-agent-v2/cli/tools/misc/integrations/computer-use/playwright-2026-06-15.jsonl")bundle_path.parent.mkdir(parents=True, exist_ok=True)entries = []entries.append({"type": "computer_call","action": {"type": "click", "x": 0.5, "y": 0.5},"call_id": str(uuid4()),"id": str(uuid4()),"ts": 1234.567})entries.append({"type": "anthropic_bridge","source": "playwright","heredoc": "...","ts": 1234.568})bundle_path.write_text("\n".join(json.dumps(e) for e in entries) + "\n")print(bundle_path, bundle_path.stat().st_size)
3. Validate Output
wc -l /home/sakthai/sakthai-agent-v2/cli/tools/misc/integrations/computer-use/playwright-2026-06-15.jsonl
Non-empty output means the file is ready.
Workflow Integration
- Apply only to green Playwright QA screenshots
- Preserve compaction and fallback semantics
- Use with the
cli-smoke-retryMCP server andplaywrightCLI tool - Trigger on cron jobs at 00:06 (install: 00:07)
- If delivery fails after 3 retries, print a confirmation to stdout instead
Anti-Patterns
- Do not write large JSONL bundles in the project root -- always keep them inside the computer-use bundle directory shown above
- Do not drop stable IDs mid-session; continuity between entries matters for replay
- Do not bundle secrets in the JSONL; screenshots may be shared externally
Verification
- Confirm the directory exists
- Write a one-entry bundle with a computer_call + anthropic_bridge
- Validate with
wc -l - Treat success as standard output of the path + size, failure as a clear error before any delivery retry logic
Reference
This capability complements:
playwright-session-persistencefor auth stateplaywright-network-reliabilityfor deterministic录制