Getting Started
Install the CLI
agent-lynx requires Node.js 18.19 or later. Install the public npm package:
You can also run it without a global installation:
The examples below use agent-lynx. Replace it with npx --yes agent-lynx if you use the one-shot command.
Give Your Agent the Instructions
agent-lynx ships with skills that the agent can discover and read directly:
skills get returns the instructions and lists the skill's reference and example files. It does not install a skill into your project. To make the DevTool skill available through your agent's automatic skill discovery, see lynx-devtool.
For example, ask your coding agent:
You can also add the instruction to read lynx-devtool before runtime debugging to your project's AGENTS.md.
Connect and Check a Page
Run Lynx Explorer or your app with DevTool integrated, enable Lynx Debug and Lynx DevTool, and open a Lynx page. Complete the device connection setup for your platform, then run:
Replace the IDs with those returned by the discovery commands. A client is the running app; a session is a Lynx view or debugging context within it. Device commands automatically share a local connector daemon so subsequent calls can reuse the connection and refs.
The snapshot gives elements refs such as @e1; the annotated screenshot labels the same elements. Continue with Page Inspection and Interaction, then use a fresh snapshot or screenshot to verify your source changes. For errors, see Troubleshooting.