| name | rodney |
| description | Guide for automating Chrome browser interactions using the rodney CLI. This skill should be used when performing web automation tasks such as navigating to pages, taking screenshots, clicking elements, filling forms, extracting page content, or any other browser-based interaction. |
Rodney
Rodney is a command-line tool for Chrome automation. It provides headless browser control for navigating pages, interacting with elements, extracting content, and taking screenshots.
Browser Lifecycle
Before any browser interaction, ensure Chrome is running:
rodney start
To check if the browser is already running:
rodney status
To shut down when done:
rodney stop
Navigation
rodney open <url>
rodney back
rodney forward
rodney reload
rodney url
rodney title
Extracting Page Content
To get page content for analysis:
rodney html
rodney html <selector>
rodney text <selector>
rodney attr <selector> <name>
To save a page as PDF:
rodney pdf [file]
Interacting with Elements
rodney click <selector>
rodney input <selector> <text>
rodney clear <selector>
rodney select <selector> <value>
rodney submit <selector>
rodney hover <selector>
rodney focus <selector>
rodney file <selector> <path|->
rodney download <sel> [file|-]
JavaScript Evaluation
To run arbitrary JavaScript in the page context:
rodney js <expression>
Waiting
To synchronize with page state before interacting:
rodney wait <selector>
rodney waitload
rodney waitstable
rodney waitidle
rodney sleep <seconds>
Screenshots
rodney screenshot [-w N] [-h N] [file]
rodney screenshot-el <selector> [file]
Tabs
rodney pages
rodney page <index>
rodney newpage [url]
rodney closepage [index]
Element Queries
To check element state without interaction:
rodney exists <selector>
rodney count <selector>
rodney visible <selector>
Accessibility Tree
To inspect the accessibility tree for understanding page structure:
rodney ax-tree [--depth N] [--json]
rodney ax-find [--name N] [--role R] [--json]
rodney ax-node <selector> [--json]
The accessibility tree is useful for understanding page structure and finding elements when CSS selectors are unclear.
Typical Workflow
A common automation sequence:
rodney start - launch the browser
rodney open <url> - navigate to the target page
rodney waitload or rodney wait <selector> - wait for page to be ready
- Interact with the page (click, input, extract, screenshot, etc.)
rodney stop - shut down when done
When chaining multiple commands, use && to ensure each step succeeds before proceeding. Insert rodney wait, rodney waitload, or rodney sleep between interactions when the page needs time to update.