Adds a file, directory, or glob pattern to the mo markdown viewer server via HTTP API, starts server if needed, and opens browser tab for preview.
From claw-monpx claudepluginhub leejuoh/claude-code-zero --plugin claw-moThis skill is limited to using the following tools:
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Uses ctx7 CLI to fetch current library docs, manage AI coding skills (install/search/generate), and configure Context7 MCP for AI editors.
Quickly add a specific file or directory to the running mo server and open it in the browser.
For config schema, HTTP API, and browser opening: read ${PLUGIN_DIR}/references/shared.md
$ARGUMENTS — file path, directory, or glob pattern. Optional --group to specify target group./claw-mo-open docs/spec.md, /claw-mo-open plans/ --group plansParse $ARGUMENTS — extract file/dir path and optional --group name (default: default)
Check prerequisites: command -v mo >/dev/null 2>&1
Get project key and read config from ${PLUGIN_DATA_DIR}/config.json
Resolve the file path to absolute: realpath <path>
If server is running (mo --status --json shows this port):
curl -s -X POST "http://localhost:$PORT/_/api/files" \
-H 'Content-Type: application/json' \
-d "{\"path\": \"$(realpath file.md)\", \"group\": \"$GROUP\"}"
curl -s -X POST "http://localhost:$PORT/_/api/patterns" \
-H 'Content-Type: application/json' \
-d "{\"pattern\": \"dir/**/*.md\", \"group\": \"$GROUP\"}"
If server is NOT running:
/claw-mo-up behavior first, then add the file/dir6300 + hash % 100), then mo --no-open -p $PORT $(realpath <path>) and open browser. Tell the user about /claw-mo-setup for persistent config.Open browser to the specific group: http://localhost:$PORT/$GROUP
Report what was added and where
realpath before sending