← 返回
开发者工具 Key 中文

Lightcone Session

Manual step-by-step computer control via Lightcone sessions. Activate when user needs fine-grained browser or desktop automation, multi-step workflows, login...
基于 Lightcone 会话的手动分步计算机控制,适用于细粒度浏览器/桌面自动化、多步骤工作流及登录场景。
eddieogola
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 644
下载
💾 7
安装
1
版本
#latest

概述

Lightcone Session Control

Three tools for manual step-by-step control of a cloud computer. Use when you need precise multi-step interaction with a website or desktop application.

For simple "go do this" tasks, prefer lightcone-browse (the /lightcone-browse command) instead.

Tools

ToolPurpose
---------------
lightcone_session_createCreate a cloud computer (browser or desktop)
lightcone_session_actionSend actions (click, type, scroll, screenshot, etc.)
lightcone_session_closeShut down the computer

Workflow Pattern

1. lightcone_session_create  → get session ID + initial screenshot
2. lightcone_session_action  → navigate, click, type, screenshot (repeat)
3. lightcone_session_close   → shut down

lightcone_session_create

ParameterRequiredDescription
----------------------------------
urlNoURL to navigate to immediately
kindNo"browser" (default) or "desktop"

Returns: session ID (e.g., lc-a1b2c3d4) + screenshot of initial state.

lightcone_session_action

ParameterRequiredDescription
----------------------------------
sessionIdYesSession ID from create
actionYesOne of the actions below
urlFor navigateTarget URL
x, yFor click/scrollPixel coordinates
textFor typeText to enter
keysFor hotkeyComma-separated keys, e.g. "Control,c"
dx, dyFor scrollScroll deltas
secondsFor waitDuration in seconds
commandFor debugShell command to run

Actions

ActionReturnsUse for
--------------------------
screenshotScreenshotSee current state
navigateScreenshotGo to a URL
clickScreenshotClick at (x, y)
doubleClickScreenshotDouble-click at (x, y)
rightClickScreenshotRight-click for context menu
typeScreenshotEnter text at cursor
hotkeyScreenshotKeyboard shortcut (e.g., Enter, Tab, Control+a)
scrollScreenshotScroll at position
htmlPage HTMLExtract page source
waitScreenshotPause before next action
debugCommand outputRun shell command in the computer

Example: Login and extract data

Step 1: Create a cloud computer at the login page
  lightcone_session_create { url: "https://app.example.com/login" }

Step 2: Type username (click the email field first)
  lightcone_session_action { sessionId: "lc-...", action: "click", x: 640, y: 300 }
  lightcone_session_action { sessionId: "lc-...", action: "type", text: "user@example.com" }

Step 3: Type password
  lightcone_session_action { sessionId: "lc-...", action: "hotkey", keys: "Tab" }
  lightcone_session_action { sessionId: "lc-...", action: "type", text: "password123" }

Step 4: Submit
  lightcone_session_action { sessionId: "lc-...", action: "hotkey", keys: "Return" }
  lightcone_session_action { sessionId: "lc-...", action: "wait", seconds: 3 }

Step 5: Screenshot to verify login succeeded
  lightcone_session_action { sessionId: "lc-...", action: "screenshot" }

Step 6: Extract page content
  lightcone_session_action { sessionId: "lc-...", action: "html" }

Step 7: Shut down
  lightcone_session_close { sessionId: "lc-..." }

Tips

  • Always take a screenshot after navigation to see the current state before clicking
  • Use coordinates from the screenshot to target clicks accurately
  • Wait 2-3 seconds after navigation or form submission for pages to load
  • Use html action to extract structured data from the page
  • Always close sessions when done to free resources

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-20 06:57 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 324,051
productivity

Lightcone Browse

eddieogola
通过 Lightcone 实现计算机自动化。当用户请求浏览网页、抓取数据、自动化网络任务、查询价格、监控网站或填写表单时激活。
★ 0 📥 547
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 67 📥 180,066