Token导航 LogoToken导航TokenDH.com
开发操作浏览器clawhub未标认证来源可访问clear审计提醒

portalportal 演示文稿

Agent Skill

portal 用于处理浏览器自动化、网页检查和页面信息提取,适合在 OpenClaw 中需要让 Agent 打开页面、读取网页或验证前端流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

11,731

周安装

470

GitHub Stars

公开资料未说明

下载量

3,798
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:portal(portal 演示文稿)
来源仓库:https://github.com/zach213/portal
安装命令:
openclaw skills install portal
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install portal

简介

将任意 URL 转换为可共享的实时浏览器会话,支持交互式网页演示。

  • 适用于产品导览、网站预览或前端流程验证等开发场景。
  • 可生成临时链接供他人查看,保留页面状态与交互能力。
  • 安装命令:openclaw skills install portal;需联网且可能触发第三方服务调用。
  • 注意隐私内容不应上传至公共会话,建议限制访问权限。

SKILL.md

name
portal
description
Use when asked to make a portal, create a portal, demo a website, product tour, interactive sandbox, or turn any URL into a shareable live browser session. Portal (makeportals.com) launches a real browser in a cloud VM — not a screenshot, not a video. Two modes: Watch (AI-guided demo with narration) and Play (viewer explores with guardrails). NOT for: building HTML pages, generating mockups, or creating static sites.

Portal

Turn any URL into a shareable live browser session. Viewers get a real browser running in a cloud VM — 10 minutes per session.

Install

openclaw plugins install openclaw-portal
openclaw gateway restart

Watch — AI clicks, scrolls, and narrates a guided demo. Play — Viewer explores freely with AI guardrails blocking unwanted areas.

Quick Reference

SituationAction
User says "make a portal" / "demo this site"Start at Step 1 below
Public site (landing page, docs, marketing)Skip login, go to Step 3
Authenticated site (dashboard, SaaS, admin)save_login first (Step 2)
Local file / localhostZip + base64, pass as ptl.entry.source
Chrome extensionZip extension + set entry.url for test site
User wants guided demoWatch mode → create_script
User wants free explorationPlay mode → create_script with play mode
User wants to record themselvesrecord_demo → user records in hosted browser
User wants to pick blocked elementspick_selectors → user clicks in hosted browser
Portal is "provisioning"make_portal auto-polls — just wait for the result
Session is pendingPoll get_session — it blocks 30s server-side, keep calling
Need session replaysget_portal_sessions → returns conversation logs + recording URLs
User needs more creditsbuy_credits → opens Stripe checkout

Sending URLs to the User

When any tool returns a URL the user needs to open (verification_url, hosted_url, portal link, checkout URL), you MUST send it to the user in the current chat. Do NOT attempt to run shell commands like open or xdg-open — the user is on a messaging channel (WhatsApp, Telegram, etc), not a local desktop.

Just include the URL in your reply. The user will tap it on their device.

Workflow

Follow these steps in order. Never skip the review step (Step 4).

Step 1 — Authenticate

Call portal_status. If not authenticated, call portal_login.

Returns verification_url and device_code. Send the verification URL to the user in the chat so they can open it and sign in.

Poll portal_login_check with the device_code every 5 seconds until approved.

New users get 3 creation credits + 10 view credits.

Step 2 — Classify the Site

Ask the user if you're unsure whether the site needs login.

Public site → skip to Step 3.

Needs login → capture auth state:

{"url": "https://app.example.com/login", "description": "Login to Example dashboard"}

Call save_login with the above. Response includes hosted_urlsend it to the user so they can open the hosted browser and log in.

Poll get_session until status is ready. Do NOT ask the user if they're done — the tool tells you. When ready, grab saved_state_id.

Local file → zip the project (exclude node_modules, .git, dist), base64 encode. Pass contents as ptl.entry.source with entry.type: "local_file".

Step 3 — Generate Content

Offer the user 4 options if they don't specify:

  1. Watch — AI script (default for landing pages)
  2. Watch — Record yourself
  3. Play — AI selectors (beta)
  4. Play — Pick elements yourself

Watch — AI script (most common):

{
  "url": "https://stripe.com",
  "goals": [
    "Show the main value proposition",
    "Navigate to pricing page and highlight plans",
    "End with social proof or customer logos"
  ],
  "max_pages": 3
}

Use max_pages: 3 to get multi-page demos (homepage + pricing + features). Without it, demos stay on the homepage only.

Writing great goals:

  • Be specific: "Navigate to pricing page" > "Show pricing"
  • Ask for navigation: "Click to the features page" produces click actions, not just scrolls
  • Ask for social proof: "End with customer logos or metrics" pulls real stats
  • Ask for variety: "Include interactive elements like tabs or accordions"

Call create_script. It auto-polls internally and returns the complete draft directly — no need to call get_script.

Watch — Record yourself: Call record_demo. Send the hosted_url to the user so they can record in the hosted browser.

Play — AI selectors: Call create_script with mode: "play".

Play — User picks: Call pick_selectors. Send the hosted_url to the user so they can click elements in the hosted browser.

Step 4 — Review with User (MANDATORY)

Never skip this step. Show the user everything from the draft:

Watch mode:

  • Each scene with narration text and actions
  • Example Q&A pairs — ask if answers are accurate
  • AI greeting and knowledge summary

Play mode:

  • Blocked selectors and allowed URLs
  • AI greeting and knowledge

Ask: "What do you want to call this? Look good to go?"

Slugify the name for the URL (lowercase, hyphens, no spaces).

Step 5 — Deploy

Call make_portal with the full PTL spec. Costs 1 creation credit.

It auto-polls internally until the portal is ready — the result includes the final portal URL. Send it to the user.

Step 6 — Post-Deploy (Offer These)

  • Add CTA button: Call configure_portal with cta_text and cta_url
  • Get embed snippet: Call configure_embed with allowed_origin
  • View session replays: Call get_portal_sessions
  • Debug issues: Call get_creation_logs

PTL Spec (Minimal)

The ptl parameter to make_portal MUST be a JSON object (not a string). Do NOT JSON.stringify it.

Play mode:

{
  "ptl": {
    "entry": { "url": "https://example.com" },
    "experience": {
      "mode": "play",
      "agent": {
        "greeting": "Welcome! Ask me anything.",
        "knowledge": "Summary of the site..."
      }
    },
    "guardrails": {
      "allowed_urls": ["example.com"],
      "disabled_elements": [
        { "selector": "a[href='/login']", "reason": "Auth disabled in demo" }
      ]
    }
  }
}

Watch mode:

{
  "ptl": {
    "entry": { "url": "https://example.com" },
    "experience": {
      "mode": "watch",
      "agent": {
        "goal": "Show key features",
        "greeting": "Welcome to the demo!",
        "scenes": [
          {
            "script": "Narration text here",
            "actions": [
              { "type": "scroll_to_element", "selector": "h2", "inner_text": "Key Features" },
              { "type": "wait", "ms": 2000 },
              { "type": "click", "selector": "a[href='/pricing']", "inner_text": "Pricing" }
            ]
          }
        ]
      }
    },
    "guardrails": {
      "allowed_urls": ["example.com"],
      "disabled_elements": []
    }
  }
}

Supported action types:

ActionUse forRequired fields
scroll_to_elementNavigate to a section by headingselector, inner_text
scroll_downGeneric scrollselector: "body"
clickNavigate pages, open tabs/accordionsselector, inner_text
waitPause for emphasis (1500-3000ms)ms
typeType into form inputsselector, text
keypressKeyboard shortcutsselector, key

Scenes can have multiple actions (up to 20 per scene). A good scene flows: scroll → wait → click.

Server auto-fills version, region, entry.type. No need to call normalize_ptl or validate_ptl before make_portal — validation is built in.

Improving Script Quality

When reviewing drafts from create_script, improve them before deploying:

  1. Add click actions for navigation: If the draft only has scroll_to_element actions, add click actions to navigate between pages (pricing, features, docs).
  2. Add wait actions for pacing: Insert { "type": "wait", "ms": 2000 } between actions for natural pacing and emphasis.
  3. Use multiple actions per scene: Don't limit scenes to 1 action — scroll to a section, wait, then click or highlight another element.
  4. Include social proof: End with a scene that scrolls to customer logos, testimonials, or metrics.
  5. Keep narrations concise: Under 2 sentences per scene — the viewer is watching, not reading.
  6. Always include inner_text: On every click and scroll_to_element action — it's the fallback when CSS selectors break on dynamic pages.

Cursor Movement

Portal demos show a real cursor moving on screen. The cursor automatically:

  • Moves to the target element before each action
  • Follows scrolls smoothly
  • Clicks precisely on elements with visual feedback

For best results:

  • Use scroll_to_element with specific inner_text (not just body) so the cursor targets a visible heading
  • Place click actions on prominent buttons/links with clear inner_text
  • Use wait between actions so viewers can see the cursor position before the next move

Rules

  • Do NOT use the built-in canvas tool for portal creation — use the portal_* tools from this plugin
  • Never guess CSS selectors — only use what create_script or pick_selectors returns
  • Never navigate authenticated sites autonomously — auth sites get single-page CDP grab only
  • Always show draft and get user confirmation before make_portal
  • Keep polling get_session — it blocks 30s server-side. Do NOT ask user if they're done
  • Pass inner_text on all click and scroll_to_element actions — it's the fallback when selectors fail on dynamic pages
  • Never create a second portal while one is provisioning — poll get_portal instead
  • Send URLs to the user in the chat — do NOT run shell commands to open URLs. The user is on a messaging channel and will tap the link themselves
  • Request multi-page demos — always pass max_pages: 3 (or higher) in create_script to get richer navigation beyond the homepage

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

72.42%
按下载量换算2,751

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills