slay-browser
Control the task browser panel via the slay CLI
- License 许可
- GPL-3.0
- 最近更新
- 2026-04-17
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- slay-browser
- trigger
- auto
- description
- Control the task browser panel via the slay CLI
03 SKILL.md 正文
Browser commands control the browser panel embedded in each task's detail view. All commands require $SLAYZONE_TASK_ID to be set (automatic in task terminals).
Every command accepts --panel <state> (visible | hidden). navigate defaults to visible (auto-opens the panel), all other commands default to hidden (operate without showing the panel).
Commands
-
slay tasks browser navigate <url> [--panel <state>]Navigate to a URL. This is the only command that auto-shows the browser panel. Use this to open pages for verification, testing, or reference. -
slay tasks browser url [--panel <state>]Print the current URL. Useful for checking where the browser is after navigation or redirects. -
slay tasks browser screenshot [-o <path>] [--panel <state>]Capture a screenshot. Returns the file path of the saved image. Use-oto copy the screenshot to a specific path; without it, prints the temp file path. -
slay tasks browser content [--json] [--panel <state>]Get the page's text content (truncated to 10k characters) and a list of interactive elements (links, buttons, inputs) as JSON. Useful for understanding page structure before clicking or typing. -
slay tasks browser click <selector> [--panel <state>]Click an element by CSS selector. Returns the tag name and text of the clicked element. -
slay tasks browser type <selector> <text> [--panel <state>]Type text into an input element by CSS selector. -
slay tasks browser eval <code> [--panel <state>]Execute JavaScript in the browser context and print the result. Strings are printed as-is, other values are pretty-printed as JSON.
Workflow tips
A typical browser verification flow:
navigateto the URLcontentto inspect the page and find selectorsclickortypeto interactscreenshotto capture the result
04 同仓库更多 Skills
sync-slay-skill
Read CLI command source files and regenerate the slay SKILL.md + init.ts command reference to match
sustainable-solution-question
Asks if the implementation is a sustainable solution
slay
Full CLI reference for slay — orchestrates all slay domain skills
slay-tasks
Manage tasks, subtasks, tags, and templates via the slay CLI
slay-pty
Interact with PTY terminal sessions via the slay CLI
slay-projects
Manage projects via the slay CLI