Basic example demonstrating how to connect to a browser using Chrome DevTools Protocol (CDP) with Intuned.
| API | Description |
|---|---|
connect-to-cdp |
Connect to browser via CDP, fetch browser info, navigate to a URL |
npm install
# or
yarnIf the intuned CLI is not installed, install it globally:
npm install -g @intuned/cliAfter installing dependencies, intuned command should be available in your environment.
intuned dev run api connect-to-cdp .parameters/api/connect-to-cdp/default.jsonintuned dev provisionintuned dev deploy/
├── api/
│ └── connect-to-cdp.ts # CDP connection example
├── hooks/
│ └── setupContext.ts # Captures CDP URL from Intuned runtime
├── utils/
│ └── typesAndSchemas.ts # Zod schemas and TypeScript types
├── intuned-resources/
│ └── jobs/
│ └── connect-cdp.job.jsonc # Job definition (schedule, payload)
├── .parameters/api/ # Test parameters
├── Intuned.jsonc # Project config
├── package.json # Node.js dependencies
└── README.md