[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FDKD9MKE2P4XX4E93CZXS2":3,"skill-same:01M6FDKD9MKE2P4XX4E93CZXS2":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M6FDKD9MKE2P4XX4E93CZXS2","pinchtab",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fmxyhi\u002Fok-skills\u002Fpinchtab\u002FSKILL.md",[],[5],"2026-11-10 10:12:30",false,"# Pinchtab\n\nFast, lightweight browser control for AI agents via HTTP + accessibility tree.\n\n**Security Note:** Pinchtab runs entirely locally. It does not contact external services, send telemetry, or exfiltrate data. However, it controls a real Chrome instance — if pointed at a profile with saved logins, agents can access authenticated sites. Always use a dedicated empty profile and set BRIDGE_TOKEN when exposing the API. See [TRUST.md](TRUST.md) for the full security model.\n\n## Quick Start (Agent Workflow)\n\nThe 30-second pattern for browser tasks:\n\n```bash\n# 1. Start Pinchtab (runs forever, local on :9867)\npinchtab &\n\n# 2. In your agent, follow this loop:\n#    a) Navigate to a URL\n#    b) Snapshot the page (get refs like e0, e5, e12)\n#    c) Act on a ref (click e5, type e12 \"search text\")\n#    d) Snapshot again to see the result\n#    e) Repeat step c-d until done\n```\n\n**That's it.** Refs are stable—you don't need to re-snapshot before every action. Only snapshot when the page changes significantly.\n\n### Recommended Secure Setup\n\n```bash\n# Best practice for AI agents\nBRIDGE_BIND=127.0.0.1 \\\nBRIDGE_TOKEN=\"your-strong-secret\" \\\nBRIDGE_PROFILE=~\u002F.pinchtab\u002Fautomation-profile \\\npinchtab &\n```\n\n**Never expose to 0.0.0.0 without a token. Never point at your daily Chrome profile.**\n\n## Setup\n\n```bash\n# Headless (default) — no visible window\npinchtab &\n\n# Headed — visible Chrome window for human debugging\nBRIDGE_HEADLESS=false pinchtab &\n\n# With auth token\nBRIDGE_TOKEN=\"your-secret-token\" pinchtab &\n\n# Custom port\nBRIDGE_PORT=8080 pinchtab &\n```\n\nDefault: **port 9867**, no auth required (local). Set `BRIDGE_TOKEN` for remote access.\n\nFor advanced setup, see [references\u002Fprofiles.md](references\u002Fprofiles.md) and [references\u002Fenv.md](references\u002Fenv.md).\n\n## What a Snapshot Looks Like\n\nAfter calling `\u002Fsnapshot`, you get the page's accessibility tree as JSON—flat list of elements with refs:\n\n```json\n{\n  \"refs\": [\n    {\"id\": \"e0\", \"role\": \"link\", \"text\": \"Sign In\", \"selector\": \"a[href='\u002Flogin']\"},\n    {\"id\": \"e1\", \"role\": \"textbox\", \"label\": \"Email\", \"selector\": \"input[name='email']\"},\n    {\"id\": \"e2\", \"role\": \"button\", \"text\": \"Submit\", \"selector\": \"button[type='submit']\"}\n  ],\n  \"text\": \"... readable text version of page ...\",\n  \"title\": \"Login Page\"\n}\n```\n\nThen you act on refs: `click e0`, `type e1 \"user@pinchtab.com\"`, `press e2 Enter`.\n\n## Core Workflow\n\nThe typical agent loop:\n\n1. **Navigate** to a URL\n2. **Snapshot** the accessibility tree (get refs)\n3. **Act** on refs (click, type, press)\n4. **Snapshot** again to see results\n\nRefs (e.g. `e0`, `e5`, `e12`) are cached per tab after each snapshot — no need to re-snapshot before every action unless the page changed significantly.\n\n### Quick examples\n\n```bash\npinchtab nav https:\u002F\u002Fpinchtab.com\npinchtab snap -i -c                    # interactive + compact\npinchtab click e5\npinchtab type e12 hello world\npinchtab press Enter\npinchtab text                          # readable text (~1K tokens)\npinchtab text | jq .text               # pipe to jq\npinchtab ss -o page.jpg                # screenshot\npinchtab eval \"document.title\"         # run JavaScript\npinchtab pdf --tab TAB_ID -o page.pdf  # export PDF\n```\n\nFor the full HTTP API (curl examples, download, upload, cookies, stealth, batch actions, PDF export with full parameter control), see [references\u002Fapi.md](references\u002Fapi.md).\n\n## Token Cost Guide\n\n| Method | Typical tokens | When to use |\n|---|---|---|\n| `\u002Ftext` | ~800 | Reading page content |\n| `\u002Fsnapshot?filter=interactive` | ~3,600 | Finding buttons\u002Flinks to click |\n| `\u002Fsnapshot?diff=true` | varies | Multi-step workflows (only changes) |\n| `\u002Fsnapshot?format=compact` | ~56-64% less | One-line-per-node, best efficiency |\n| `\u002Fsnapshot` | ~10,500 | Full page understanding |\n| `\u002Fscreenshot` | ~2K (vision) | Visual verification |\n| `\u002Ftabs\u002F{id}\u002Fpdf` | 0 (binary) | Export page as PDF (no token cost) |\n\n**Strategy**: Start with `?filter=interactive&format=compact`. Use `?diff=true` on subsequent snapshots. Use `\u002Ftext` when you only need readable content. Full `\u002Fsnapshot` only when needed.\n\n## Agent Optimization\n\n**Validated Feb 2026**: Testing with AI agents revealed a critical pattern for reliable, token-efficient scraping.\n\n**See the full guide:** [docs\u002Fagent-optimization.md](..\u002F..\u002Fdocs\u002Fagent-optimization.md)\n\n### Quick Summary\n\n**The 3-second pattern** — wait after navigate before snapshot:\n\n```bash\ncurl -X POST http:\u002F\u002Flocalhost:9867\u002Fnavigate \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"url\": \"https:\u002F\u002Fpinchtab.com\"}' && \\\nsleep 3 && \\\ncurl http:\u002F\u002Flocalhost:9867\u002Fsnapshot | jq '.nodes[] | select(.name | length > 15) | .name'\n```\n\n**Token savings:** 93% reduction (3,842 → 272 tokens) when using prescriptive instructions vs. exploratory agent approach.\n\nFor detailed findings, system prompt templates, and site-specific notes, see [docs\u002Fagent-optimization.md](..\u002F..\u002Fdocs\u002Fagent-optimization.md).\n\n## Tips\n\n- **Always pass `tabId` explicitly** when working with multiple tabs\n- Refs are stable between snapshot and actions — no need to re-snapshot before clicking\n- After navigation or major page changes, take a new snapshot for fresh refs\n- Pinchtab persists sessions — tabs survive restarts (disable with `BRIDGE_NO_RESTORE=true`)\n- Chrome profile is persistent — cookies\u002Flogins carry over between runs\n- Use `BRIDGE_BLOCK_IMAGES=true` or `\"blockImages\": true` on navigate for read-heavy tasks\n- **Wait 3+ seconds after navigate before snapshot** — Chrome needs time to render 2000+ accessibility tree nodes\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fmxyhi\u002Fok-skills\u002Fpinchtab",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill pinchtab",{"tool":37,"command":38},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill pinchtab",{"tool":40,"command":41},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill pinchtab","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fmxyhi\u002Fok-skills\u002Fpinchtab\u002FSKILL.md",true,[],[46,55,64,73,79,85],{"skillNo":47,"name":48,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[52,53,54],"model","model hierarchy","model hierarchy skill",{"skillNo":56,"name":57,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[61,62,63],"MCP","zoom","zoom mcp",{"skillNo":65,"name":66,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[70,71,72,62],"sdk","zoom apps sdk","apps",{"skillNo":74,"name":75,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[75],{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[81],{"skillNo":86,"name":87,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[87]]