Entry point: mq-image
Global options:
mq-image --version
mq-image --help
mq-image <command> --helpAnalyze an image: objects, palette, composition, content flags, semantic caption, and reverse prompt.
mq-image analyze <image>
mq-image analyze <image> --json
mq-image analyze <image> --exhaustive --conf 0.05
mq-image analyze <image> --mode local-fast
mq-image analyze <image> --mode local-deep
mq-image analyze <image> --mode cloud-verify --vision-model gpt-4.1| Argument | Type | Required | Description |
|---|---|---|---|
image |
path | yes | Path to image file |
--json |
flag | no | Output raw JSON instead of rich terminal output |
--exhaustive |
flag | no | Preserve every raw detection, including duplicates |
--conf |
float | no | Detection confidence threshold |
--mode |
string | no | Vision backend: local-fast, local-deep, or cloud-verify |
--vision-model |
string | no | Override backend model, for example gpt-4o or gpt-4.1 |
Backend defaults:
| Mode | Default model | Notes |
|---|---|---|
local-fast |
bakllava |
Default Ollama path |
local-deep |
llama3.2-vision |
Stronger local Ollama path when available |
cloud-verify |
gpt-4.1 |
OpenAI quality gate; requires OPENAI_API_KEY |
For GPT-4o:
mq-image analyze diagram.png --mode cloud-verify --vision-model gpt-4oAnalyze a UI screenshot: screenshot type, layout regions, WCAG contrast ratio, hierarchy, grid alignment, accessibility issues, and prompt.
mq-image analyze-ui <screenshot>
mq-image analyze-ui <screenshot> --json| Argument | Type | Required | Description |
|---|---|---|---|
image |
path | yes | Path to screenshot |
--json |
flag | no | Output raw JSON |
Compare two images for visual drift.
mq-image compare <before> <after>
mq-image compare <before> <after> --json
mq-image compare <before> <after> --exhaustive --conf 0.05| Argument | Type | Required | Description |
|---|---|---|---|
before |
path | yes | Baseline image |
after |
path | yes | Changed image |
--json |
flag | no | Output raw JSON |
--exhaustive |
flag | no | Use exhaustive detection mode |
--conf |
float | no | Detection confidence threshold |
Check system readiness: Python version, required packages, model files, and output permissions.
mq-image doctor
mq-image doctor --jsonStart the local web UI.
mq-image serve
mq-image serve --host 127.0.0.1 --port 8000
mq-image serve --reloadInstall web dependencies with:
pip install -e ".[web]"Start the MCP server.
mq-image mcp
mq-image mcp --transport stdio
mq-image mcp --transport sseInstall MCP dependencies with:
pip install -e ".[mcp]"