--- name: controls description: Read and mutate app-defined debug controls (text, toggle, select, input, button) exposed via the Controls plugin. domain: controls --- # Controls Plugin Domain A Rozenite plugin for exposing app-defined controls in React Native DevTools. You get a custom control panel: read runtime values, flip toggles, switch options, submit text input, and trigger actions (e.g. reset, refetch) without building extra debug screens. Use this domain to list sections and items, read values, and mutate them via `set-value` or `press-button`. ## Domain - Plugin ID: `@rozenite/controls-plugin` - Domain token: `controls` ## Tools ``` npx rozenite agent controls list-sections npx rozenite agent controls get-item --sectionId --itemId npx rozenite agent controls set-value --sectionId --itemId --value true npx rozenite agent controls set-value --sectionId --itemId --value option-a npx rozenite agent controls press-button --sectionId --itemId ``` `list-sections` prints one row per section, with its items (`id`, `type`, `title`) nested in the `items` column. ## Item Types - `text` — read-only display value; `set-value` will throw - `toggle` — boolean value; `set-value` requires `boolean` - `select` — string value from a fixed `options` list; `set-value` validates against valid options - `input` — free-form string value; `set-value` requires `string` - `button` — no value; use `press-button` to trigger ## Minimal Flow `list-sections` -> `get-item` (to read current value) -> `set-value` or `press-button`. Mutation: `set-value` / `press-button`. Disabled items will throw on mutation attempts.