skill-body
Agent skill fromcitrolabs/ego-lite
Call `help()` or `help("page.click")` to print signatures and uncommon options
How to install skill-body
install skill-body
# install the ego-lite pack with the skills CLI
npx skills add citrolabs/ego-lite# or add only this skill to Claude Code: copy the folder
package/ego-browser/skill-body/
# into
~/.claude/skills/skill-body/ (all projects)
.claude/skills/skill-body/ (one project)
1# ego-browser23Call `help()` or `help("page.click")` to print signatures and uncommon options4of APIs named below; it prints by itself, so do not wrap it in `console.log`.5For installation or connection problems, read `references/install.md` in the6ego-browser Skill directory and follow its link for your operating system.78## Run browser scripts910Pass the script to `ego-browser nodejs`.1112<!-- platform: windows -->1314The form depends on the shell that runs the command: heredoc is Bash/Zsh15syntax and does not exist in PowerShell or cmd.1617### Bash, Zsh, Git Bash1819<!-- /platform -->2021```bash22ego-browser nodejs <<'EOF'23const task = await taskSpace("inspect example page");24const page = task.page("p1");25await page.goto("https://example.com");2627console.log({ taskSpaceId: task.spaceId, page: page.label });28console.log(await page.snapshot());29EOF30```3132When a sandbox blocks heredoc input, use `-e` instead. Use single quotes around33the code and double quotes for JavaScript strings; single quotes within the code34require shell quoting.3536```bash37ego-browser nodejs -e '38const task = await taskSpace("inspect example page");39await task.page("p1").goto("https://example.com");40console.log(task.spaceId);41'42```4344<!-- platform: windows -->4546### PowerShell4748PowerShell has no heredoc, and Windows PowerShell 5.1 drops the double quotes49inside an argument when it calls a native program, which splits the script into50several arguments. Do not pass a script that contains double quotes or spans51…
Excerpt shown under the repository's MIT license.
