rocx-cli convert
Convert documents across docx, dotx, odt, rtf, txt, html, md, epub, and pdf (including flattened redacted PDF).
Exit codes: 0 OK, 2 usage/invalid args, 3 I/O or sandbox error, 4 unsupported/encrypted, 5 runtime error
rocx-cli convert report.docx report.pdf --to pdf --json
rocx-cli inspect
Bounded structural, text, selection, outline, and privacy-metadata inspection against a file or live desktop window.
Supports --text, --summary, --outline, --selection, --privacy, --connect 127.0.0.1:<port>
rocx-cli inspect report.docx --summary --outline --json
rocx-cli run
Execute bounded, replay-safe JSON batch command scripts offline or against a running Rocx window.
Supports --script <file.json>, --dry-run, --automation-read-root, --automation-write-root
rocx-cli run --script edits.json --connect 127.0.0.1:59835 --json
rocx-cli mcp
Start the synchronous 1 MiB NDJSON stdio MCP server (protocol 2025-03-26 / 2024-11-05) with fail-closed PathSandbox defaults.
Exposes grouped tools (doc_inspect, doc_selection, doc_edit, doc_format, doc_structure, doc_review, doc_version, doc_file, doc_privacy, execute_command) and 4 docx:// resources
rocx-cli mcp --automation-read-root ./docs --automation-write-root ./out
rocx (Desktop Flags)
Launch the native GPUI SDI desktop application with optional headless probe, chrome, locale, or TCP control bridge.
--chrome-mode modern|classic, --locale <tag>, --no-splash, --no-start-screen, --control <port>, --headless-probe
rocx report.docx --chrome-mode classic --locale en --no-splash
rocx-api (Rust Crate)
Embeddable Layer 5 DocxClient providing identical typed operations across headless files and live ControlServer windows.
Enforces PathSandbox, ResourceLimits, deterministic BTree collections, and #![forbid(unsafe_code)]
DocxClient::open_headless(path, sandbox, limits)