Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions packages/agent-cdp/skills/core.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ Requirements:
Metro exposes multiple targets (JS runtime, Hermes debugger, etc.). Pick the
one labelled with your app name or `"React Native"` in the target list.

### Rozenite agent tools

```bash
agent-cdp skills get rozenite
```

## Console capture

```bash
Expand Down Expand Up @@ -98,6 +104,14 @@ agent-cdp skills get network

That skill contains session behavior, common workflows, body inspection guidance, and network-specific troubleshooting.

## Rozenite

For Rozenite in-app agent tools (`rozenite status|tools|call`), run:

```bash
agent-cdp skills get rozenite
```

## Trace recording

For trace workflows, run:
Expand Down
35 changes: 35 additions & 0 deletions packages/agent-cdp/skills/rozenite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: rozenite
description: Rozenite in-app agent tools via agent-cdp. Use after core target selection. React Native via Metro/Fusebox; Chrome only with the Rozenite browser extension installed.
allowed-tools: Bash(agent-cdp:*)
---

# agent-cdp rozenite

Call tools registered in the app or page through the Rozenite CDP bridge.

Prerequisite: `agent-cdp skills get core`, then `start` → `target list` → `target select`.

## Targets

- **React Native** — Metro debug target (`--url http://localhost:8081`). App must use **Rozenite**.
- **Chrome** — CDP tab target (`--url http://localhost:9222`). Requires the **Rozenite browser extension**; without it bootstrap times out.

Check readiness: `agent-cdp rozenite status` (works while bootstrapping).

## Commands

```bash
agent-cdp rozenite status
agent-cdp rozenite tools
agent-cdp rozenite tool-schema <name>
agent-cdp rozenite call <name> [--input '{"key":"value"}']
```

`status` returns `state` (`idle` | `waiting-for-runtime` | `ready` | `error` | `unsupported-target`), `toolCount`, and `target`. Other commands need `state: ready`.

## Troubleshooting

- **`waiting-for-runtime` / timeout** — Fusebox dispatcher missing: RN needs Rozenite in Metro; Chrome needs the extension on that tab.
- **`toolCount: 0` but `ready`** — App has not registered tools yet; wait for `register-tool` events.
- **Call hangs** — Tool handler not returning; default timeout 30s.
Loading