export const ROOT_HELP_TEXT_SECONDARY = [ ' uncheck Uncheck a checkbox by --element ref', ' focus Focus an element by --element ref', ' clear Clear an input by --element ref', ' drag Drag --from ref to --to ref', ' upload Upload --files to a file input by --element ref', ' dblclick Double-click element by --element ref', ' forward Navigate forward in browser history', ' scrollintoview Scroll --element into view', ' get Get element property (--what: text, html, value, url, title)', ' is Check element state (--what: visible, enabled, checked)', ' inserttext Insert text without key events', ' mouse move Move mouse to --x --y coordinates', ' mouse down Press mouse button', ' mouse up Release mouse button', ' mouse wheel Scroll wheel --dy [--dx]', ' find Find element by locator (--locator role|text|label --value )', ' set device Emulate device (--name "iPhone 12")', ' set offline Toggle offline mode (--state on|off)', ' set headers Set HTTP headers (--headers \'{"key":"val"}\')', ' set credentials Set HTTP auth (--user --pass

)', ' set media Set color scheme (--color-scheme dark|light)', ' clipboard read Read clipboard contents', ' clipboard write Write --text to clipboard', ' dialog accept Accept browser dialog (--text for prompt response)', ' dialog dismiss Dismiss browser dialog', ' storage local get Get localStorage value by --key', ' storage local set Set localStorage --key --value', ' storage local clear Clear localStorage', ' storage session get Get sessionStorage value by --key', ' storage session set Set sessionStorage --key --value', ' storage session clear Clear sessionStorage', ' download Download file via --selector to --path', ' highlight Highlight --selector on page', ' exec Run any agent-browser command (--command "...")', '', 'Common Commands:', ' orca open [--json]', ' orca serve [--port ] [--pairing-address ] [--mobile-pairing] [--no-pairing] [--grant-desktop-control] [--project-root ] [--recipe-json] [--json]', ' orca status [--json]', ' orca diagnostics memory [--json]', ' orca agent-context [--json]', ' orca search [--scope conversation|all] [--fresh] [--limit ] [--cursor ] [--agent ] [--path

] [--since ] [--sort relevance|newest] [--debug] [--json]', ' orca search --index-status [--json]', ' orca account add [--agent claude|codex] [--json]', ' orca account list [--json]', ' orca host list [--json]', ' orca environment add --name --pairing-code [--json]', ' orca environment list [--json]', ' orca environment show --environment [--json]', ' orca environment rm --environment [--json]', ' orca worktree list [--repo ] [--limit ] [--json]', ' orca worktree create --name [--repo |--project [--host ]|--project-host-setup ] [--agent ] [--prompt ] [--setup run|skip|inherit] [--base-branch ] [--issue ] [--pr ] [--linear-issue ] [--gitlab-issue ] [--gitlab-mr ] [--comment ] [--parent-worktree ] [--no-parent] [--run-hooks] [--activate] [--json]', ' orca worktree show --worktree [--json]', ' orca worktree current [--json]', ' orca worktree set --worktree [--display-name ] [--issue ] [--pr ] [--linear-issue ] [--gitlab-issue ] [--gitlab-mr ] [--comment ] [--workspace-status ] [--unread|--read] [--parent-worktree |--no-parent] [--json]', ' orca worktree rm --worktree [--force] [--run-hooks] [--allow-failed-archive-hook] [--json]', ' orca worktree ps [--limit ] [--json]', ' orca file open [--worktree ] [--focus] [--json]', ' orca file diff [--staged] [--worktree ] [--focus] [--json]', ' orca file open-changed [--mode edit|diff|both] [--worktree ] [--focus] [--json]', ' orca terminal list [--worktree ] [--limit ] [--include-visual-layouts] [--json]', ' orca terminal show [--terminal ] [--json]', ' orca terminal read [--terminal ] [--cursor ] [--limit ] [--json]', ' orca terminal send [--terminal ] [--text ] [--enter] [--interrupt] [--wait-submit ] [--retry-request ] [--json]', ' orca terminal wait [--terminal ] --for exit|tui-idle [--timeout-ms ] [--json]', ' orca terminal create [--worktree ] [--title ] [--command ] [--shell ] [--focus] [--json]', ' orca terminal split [--terminal ] [--direction horizontal|vertical] [--json]', ' orca terminal switch [--terminal ] [--json]', ' orca terminal close ([--terminal ] [--tab] | --worktree --all) [--json]', ' orca project list [--json]', ' orca project setups [--project ] [--host ] [--json]', ' orca project setup-existing-folder --project --host --path [--kind git|folder] [--display-name ] [--json]', ' orca project setup-clone --project --host --url --destination [--display-name ] [--json]', ' orca project setup-create --project --host [--setup-id ] [--path ] [--kind git|folder] [--display-name ] [--worktree-base-path ] [--git-username ] [--state ready|not-set-up|setting-up|error|unsupported] [--method imported-existing-folder|cloned|provisioned] [--json]', ' orca project setup-update --setup [--display-name ] [--path ] [--worktree-base-path ] [--git-username ] [--kind git|folder] [--state ready|not-set-up|setting-up|error|unsupported] [--method legacy-repo|imported-existing-folder|cloned|provisioned] [--json]', ' orca project setup-delete --setup [--force] [--json]', ' orca repo list [--json]', ' orca repo add --path [--json]', ' orca repo show --repo [--json]', ' orca repo set --repo --external-worktree-visibility show|hide|inherit [--json]', ' orca repo set-base-ref --repo --ref [--json]', ' orca repo search-refs --repo --query [--limit ] [--json]', '', 'Selectors:', ' --repo Registered repo selector such as id:, name:, or path:', ' --worktree Worktree selector such as identity:, id:::, name:, branch:, issue:, path:, or active/current', ' --terminal Runtime-issued terminal handle returned by `orca terminal list --json`', ' --parent-worktree Parent worktree selector such as identity:, id:::, branch:, issue:, path:, or active/current', ' --no-parent Force no parent lineage for unrelated worktree creation/update', '', 'Terminal Send Options:', ' --text Text to send to the terminal', ' --enter Append Enter after sending text', ' --interrupt Send as an interrupt-style input when supported', ' --wait-submit Observe this accepted prompt without resending it', ' --retry-request Resume the same durable prompt request after an ambiguous transport failure', '', 'Terminal List Options:', ' --include-visual-layouts Include tab and pane topology in JSON output', '', 'Wait Options:', ' --for exit Wait until the target terminal exits', ' --timeout-ms Maximum wait time before timing out', '', 'Output Options:', ' --json Emit machine-readable JSON instead of human text', ' --pairing-code Connect to a remote Orca runtime using an orca://pair?... code', ' --environment Connect using a saved environment id or name', ' --help Show this help message', '', 'Behavior:', ' Most commands require a running Orca runtime. If Orca is not open yet, run `orca open` first.', ' Remote runtime access can also be supplied with ORCA_PAIRING_CODE or ORCA_ENVIRONMENT.', ' Use selectors for discovery and handles for repeated live terminal operations.', '', 'Agent Sessions And Worktrees:', ' `worktree create --agent` creates a new checkout with an agent.', ' To start a fresh agent in the current worktree, use:', ' orca terminal create --worktree active --command "codex"', '', 'Browser Workflow:', ' 1. Create or navigate: orca tab create --url https://example.com', ' orca goto --url https://example.com', ' 2. Inspect the page: orca snapshot', ' (Returns an accessibility tree with element refs like e1, e2, e3)', ' For concurrent workflows, prefer: orca tab list --json', ' then reuse tabs[].browserPageId with --page on later commands.', ' 3. Interact: orca click --element e2', ' orca fill --element e5 --value "search query"', ' orca keypress --key Enter', ' 4. Re-inspect: orca snapshot', ' (Element refs change after navigation — always re-snapshot before interacting)', '', 'Browser Options:', ' --element Element ref from snapshot (e.g. @e3)', ' --url URL to navigate to', ' --value Value to fill or select', ' --input Text to type at current focus (no element needed)', ' --expression JavaScript expression to evaluate', ' --key Key to press (Enter, Tab, Escape, Control+a, etc.)', ' --direction

Scroll direction: up or down', ' --amount Scroll distance in pixels (default: viewport height)', ' --index Tab index (from `tab list`)', ' --page Stable browser page id (preferred for concurrent workflows)', ' --profile Browser profile id', " --show-profile Include the tab's browser profile in text output", ' --format Screenshot image format', ' --from Drag source element ref', ' --to Drag target element ref', ' --files Comma-separated file paths for upload', ' --timeout Wait timeout in milliseconds', " --worktree Scope commands to a specific worktree's browser tabs", '', 'Examples:', ' $ orca open', ' $ orca status --json', ' $ orca diagnostics memory --json', ' $ orca repo list', ' $ orca worktree create --name agent-task --agent codex --prompt "hi"', ' $ orca worktree create --repo name:orca --name cli-test-1 --issue 273', ' $ orca worktree create --repo name:orca --name linear-task --linear-issue https://linear.app/stably/issue/STA-335/test-issue', ' $ orca worktree create --name linear-task --linear-issue STA-335', ' $ orca worktree show --worktree branch:Jinwoo-H/cli', ' $ orca worktree current', ' $ orca worktree set --worktree active --comment "waiting on review"', ' $ orca worktree set --worktree active --linear-issue null', " $ orca worktree set --worktree active --gitlab-mr '!77'", ' $ orca worktree set --worktree active --gitlab-issue https://gitlab.example.com/group/project/-/issues/42', ' $ orca worktree ps --limit 10', ' $ orca file open-changed --mode diff', ' $ orca file open src/App.tsx', ' $ orca terminal create --worktree active --command "codex"', ' $ orca terminal list --worktree path:/Users/me/orca/workspaces/orca/cli-test-1 --json', ' $ orca terminal send --terminal term_123 --text "hi" --enter', ' $ orca terminal wait --terminal term_123 --for exit --timeout-ms 60000 --json', ' $ orca tab current --json', ' $ orca tab show --page page_123 --json', ' $ orca tab create --url https://example.com --profile work', ' $ orca tab profile clone --page page_123 --profile work --json', ' $ orca snapshot', ' $ orca click --element e3', ' $ orca fill --element e5 --value "hello"', ' $ orca goto --url https://example.com/login', ' $ orca keypress --key Enter', ' $ orca eval --expression "document.title"', ' $ orca tab list --json' ].join('\n')