Documentation

    Hosted installer: at launch

    CLI and MCP reference

    Commands, flags, tools and result fields generated from the implementation.

    Use the CLI walkthrough or MCP setup for the working path. This page supplies the exact vocabulary the installed command exposes. Publication goes to a separate report server.

    CLI command and flag reference

    richview

    Rich Markdown: render, check and publish reports from your agent

    ArgumentRequiredDescription
    -h, --helpnoPrint help

    richview generate

    Write the self-contained report, or a PDF, into the report folder’s Rendered/

    ArgumentRequiredDescription
    inputyesThe report’s .rmd, saved in its own folder (a folder holding one .rmd also works)
    --stylenoStyle (a builtin name or a file in the report folder) replacing the source’s styles for this call; repeatable
    --connectorsnoTrusted connectors.toml binding the names in report.connectors.yaml to data sources Environment: RICHVIEW_CONNECTORS.
    -o, --outputnoFile name inside Rendered/; a name ending in .pdf implies --to pdf
    --tonoWrite the interactive report (default) or a PDF printed by a local Chromium-family browser Values: report, pdf.
    --pagenoPaper size of a PDF Values: a4, letter.
    --browsernoChromium, Google Chrome or Microsoft Edge executable for PDF output (or RICHVIEW_BROWSER)
    --settle-timeoutnoSeconds a PDF waits for fonts and charts to settle
    --formatnopretty for people, json for agents Values: pretty, json.
    -h, --helpnoPrint help (see more with ‘--help’)

    richview validate

    Check the structure of a report without rendering it

    ArgumentRequiredDescription
    inputyesThe report’s .rmd, saved in its own folder (a folder holding one .rmd also works)
    --publishnoAlso apply the publish rules: title, description, version and a valid slug Values: true, false.
    --formatnopretty for people, json for agents Values: pretty, json.
    -h, --helpnoPrint help

    richview check

    Render the report and return every diagnostic and each chart’s geometry

    ArgumentRequiredDescription
    inputyesThe report’s .rmd, saved in its own folder (a folder holding one .rmd also works)
    --stylenoStyle (a builtin name or a file in the report folder) replacing the source’s styles for this call; repeatable
    --connectorsnoTrusted connectors.toml binding the names in report.connectors.yaml to data sources Environment: RICHVIEW_CONNECTORS.
    --chart-widthnoMeasure charts at this width in pixels instead of the widths readers get; repeatable
    --formatnopretty for people, json for agents Values: pretty, json.
    -h, --helpnoPrint help

    richview init

    Start a report folder from the template, never overwriting

    ArgumentRequiredDescription
    dirnoFolder to create; defaults to the report name
    --namenoName of the report file
    --formatnopretty for people, json for agents Values: pretty, json.
    -h, --helpnoPrint help

    richview learn

    Print the authoring guide, or one section of it

    ArgumentRequiredDescription
    sectionnogrammar, chart-contract, style, workflow or anti-slop
    -h, --helpnoPrint help

    richview mcp

    Serve the RichView tools to an agent over MCP (stdio)

    ArgumentRequiredDescription
    -h, --helpnoPrint help

    richview publish

    Publish a version of the report to a RichView server

    ArgumentRequiredDescription
    inputyesThe report’s .rmd, saved in its own folder (a folder holding one .rmd also works)
    --stylenoStyle (a builtin name or a file in the report folder) replacing the source’s styles for this call; repeatable
    --connectorsnoTrusted connectors.toml binding the names in report.connectors.yaml to data sources Environment: RICHVIEW_CONNECTORS.
    --servernoServer URL (https, or http on loopback) Environment: RICHVIEW_SERVER.
    --choose-servernoChoose and remember a publish server again (without RICHVIEW_SERVER) Values: true, false.
    --tokennoBearer token of the server Environment: RICHVIEW_TOKEN.
    --slugnoAddress of the report; defaults to the frontmatter slug, then the title
    --newnoCreate a report address the server has not stored before Values: true, false.
    --formatnopretty for people, json for agents Values: pretty, json.
    -h, --helpnoPrint help

    richview serve

    Preview the report in a browser and reload it when the folder changes

    ArgumentRequiredDescription
    inputyesThe report’s .rmd, saved in its own folder (a folder holding one .rmd also works)
    --stylenoStyle (a builtin name or a file in the report folder) replacing the source’s styles for this call; repeatable
    --connectorsnoTrusted connectors.toml binding the names in report.connectors.yaml to data sources Environment: RICHVIEW_CONNECTORS.
    -p, --portno
    --bindno
    -h, --helpnoPrint help

    richview report

    Delete, pin, unpin or regenerate a stored report on a server

    ArgumentRequiredDescription
    -h, --helpnoPrint help

    richview report delete

    Delete a version for good; its address answers 410 and it can never be published again

    ArgumentRequiredDescription
    slugyes
    versionyes
    --yesnoDelete without asking Values: true, false.
    --servernoServer URL (https, or http on loopback) Environment: RICHVIEW_SERVER.
    --tokennoBearer token of the server Environment: RICHVIEW_TOKEN.
    --formatnopretty for people, json for agents Values: pretty, json.
    -h, --helpnoPrint help

    richview report pin

    Make a version the one the report address serves

    ArgumentRequiredDescription
    slugyes
    versionyes
    --servernoServer URL (https, or http on loopback) Environment: RICHVIEW_SERVER.
    --tokennoBearer token of the server Environment: RICHVIEW_TOKEN.
    --formatnopretty for people, json for agents Values: pretty, json.
    -h, --helpnoPrint help

    richview report unpin

    Serve the highest release version again

    ArgumentRequiredDescription
    slugyes
    --servernoServer URL (https, or http on loopback) Environment: RICHVIEW_SERVER.
    --tokennoBearer token of the server Environment: RICHVIEW_TOKEN.
    --formatnopretty for people, json for agents Values: pretty, json.
    -h, --helpnoPrint help

    richview report regenerate

    Re-render a stored version with this engine and say whether the HTML changes; stores nothing

    ArgumentRequiredDescription
    slugyes
    versionyes
    --servernoServer URL (https, or http on loopback) Environment: RICHVIEW_SERVER.
    --tokennoBearer token of the server Environment: RICHVIEW_TOKEN.
    --formatnopretty for people, json for agents Values: pretty, json.
    -h, --helpnoPrint help

    richview server

    Run RichView Cowork, the report server

    ArgumentRequiredDescription
    -p, --portnoEnvironment: PORT.
    --bindnoEnvironment: RICHVIEW_BIND.
    --data-dirnoEnvironment: RICHVIEW_DATA_DIR.
    --tokennoEnvironment: RICHVIEW_TOKEN.
    --public-urlnoEnvironment: RICHVIEW_PUBLIC_URL.
    --report-originnoThe origin that serves report pages, apart from the app’s. Defaults to this host on --report-port Environment: RICHVIEW_REPORT_ORIGIN.
    --report-portnoThe port of the report listener; defaults to the port after --port (any free port for 0) Environment: RICHVIEW_REPORT_PORT.
    --quota-bytesnoMost bytes the report store may hold; a publication past it fails with publish.quota Environment: RICHVIEW_QUOTA_BYTES.
    --default-visibilitynoWho can read a report until its owner shares it: private, org or public Environment: RICHVIEW_DEFAULT_VISIBILITY.
    --admin-emailnoCreates this admin on first start when the server has no people yet; the password comes from RICHVIEW_ADMIN_PASSWORD Environment: RICHVIEW_ADMIN_EMAIL.
    -h, --helpnoPrint help

    richview asset

    Upload, verify and abort integrity-pinned remote data and media

    ArgumentRequiredDescription
    -h, --helpnoPrint help

    richview asset put

    Upload a data or media file and print its integrity-pinned reference

    ArgumentRequiredDescription
    fileyes
    --toyesStore profile name
    --publicnoWrite under the public prefix with immutable caching (private by default) Values: true, false.
    --typenoMedia type when the extension is ambiguous, for example audio/webm
    --storesnoStore profiles file [default: $RICHVIEW_STORES, then $XDG_CONFIG_HOME/richview/stores.yaml]
    --formatnoValues: pretty, json.
    -h, --helpnoPrint help

    richview asset verify

    Check stored objects against reference files (YAML or JSON)

    ArgumentRequiredDescription
    referencesyes
    --tonoStore profile that signs requests for private references
    --hashnoStream each object and compare its SHA-256 Values: true, false.
    --storesnoStore profiles file [default: $RICHVIEW_STORES, then $XDG_CONFIG_HOME/richview/stores.yaml]
    --formatnoValues: pretty, json.
    -h, --helpnoPrint help

    richview asset abort

    Abort journaled multipart uploads (all, or those whose SHA-256 starts with a prefix)

    ArgumentRequiredDescription
    sha256no
    --tonoOnly uploads to this store profile
    --storesnoStore profiles file [default: $RICHVIEW_STORES, then $XDG_CONFIG_HOME/richview/stores.yaml]
    --formatnoValues: pretty, json.
    -h, --helpnoPrint help

    richview image

    Search Unsplash and place a credited photo in a report

    ArgumentRequiredDescription
    -h, --helpnoPrint help

    Search Unsplash and list candidate photos (does not register a download)

    ArgumentRequiredDescription
    queryyes
    --orientationnoValues: landscape, portrait, squarish.
    --per-pagenoResults to return, from 1 to 10
    --formatnoValues: text, json.
    -h, --helpnoPrint help (see more with ‘--help’)

    richview image use

    Choose a photo: register the download once and print the YAML with its credit

    ArgumentRequiredDescription
    photo_idyes
    --widthnoRequested image width in pixels; the file is never enlarged past the original
    --altnoAlt text; defaults to the photo’s own description
    --asnoA fenced image block or a title_image frontmatter mapping Values: block, title-image.
    --formatnoValues: text, json.
    -h, --helpnoPrint help (see more with ‘--help’)

    MCP over standard input/output

    Configure a stdio server with the absolute executable path and the argument mcp. Standard output carries newline-framed JSON-RPC replies. MCP setup explains configuration and an example render request.

    richview_learn

    Returns RichView’s authoring guide, or one section of it. Call this first. Same text as richview learn.

    ArgumentTypeRequiredDescription
    sectiongrammar, chart-contract, style, workflow, anti-slopno

    richview_validate

    Checks a report’s structure and files without rendering it. With publish: true it adds the publish rules. Same result as richview validate.

    ArgumentTypeRequiredDescription
    inputPathstringyesThe report’s .rmd, saved in its own report folder
    publishbooleannoAlso apply the publish rules: title, description, version and a valid slug

    richview_check

    Renders the saved report and checks provenance and chart geometry: clipping, collisions and dropped labels. Read structuredContent.status and diagnostics, repair warnings/errors, and check again after the final edit. A report finding returns isError: false; status: clean means no warnings or errors. Same result as richview check.

    ArgumentTypeRequiredDescription
    chartWidthnumbernoMeasure charts at this width in pixels instead of the widths readers get
    inputPathstringyesThe report’s .rmd, saved in its own report folder
    stylesarray of stringnoStyles (a builtin name or a file in the report folder) replacing the source’s styles for this call

    richview_render

    Writes the self-contained HTML report, or a PDF printed by a local Chromium-family browser, into the report folder’s Rendered/. Run richview_check after the final source edit for geometry and provenance findings before generating. Its result has ok, status, output (the file written) and the render diagnostics. Same result as richview generate.

    ArgumentTypeRequiredDescription
    inputPathstringyesThe report’s .rmd, saved in its own report folder
    outputreport, pdfnoreport (default) or pdf
    outputNamestringnoFile name inside Rendered/; a .pdf name implies pdf
    pagea4, letterno
    stylesarray of stringnoStyles (a builtin name or a file in the report folder) replacing the source’s styles for this call

    richview_publish

    Publishes a version of the report to the named RichView server. The token comes from the host environment (RICHVIEW_TOKEN), never from arguments. Same result as richview publish.

    ArgumentTypeRequiredDescription
    inputPathstringyesThe report’s .rmd, saved in its own report folder
    newbooleannoCreate a report address the server has not stored before
    serverstringnoServer URL; defaults to RICHVIEW_SERVER and must equal it when that is set, so the token only goes to the configured server
    slugstringno

    richview_asset_put

    Upload a local data or media file to a configured S3-compatible store and return its integrity-pinned reference {url, bytes, sha256, type, visibility}. Private unless public is true. Calling again resumes an interrupted upload or reports the stored object. Progress notifications follow the request’s progressToken.

    ArgumentTypeRequiredDescription
    pathstringyesLocal file to upload
    publicbooleannoServe under the public prefix with immutable caching
    storestringyesStore profile name from stores.yaml
    typestringnoMedia type when the extension is ambiguous

    richview_asset_verify

    Check a stored object against its reference: HEAD status, size, type and range support; with hash, stream the object and compare its SHA-256. Private references need store.

    ArgumentTypeRequiredDescription
    assetobjectyesReference {url, bytes, sha256, type, visibility}
    hashbooleanno
    storestringnoStore profile that signs requests for private references

    richview_image_search

    Search Unsplash for photos. Returns candidates {id, description, author, author_url, width, height, color, thumb, regular, unsplash_url}. Show the user the photographer for each candidate and let them choose; searching does not register a download. Needs UNSPLASH_ACCESS_KEY in the server environment.

    ArgumentTypeRequiredDescription
    orientationlandscape, portrait, squarishno
    per_pageintegernoResults to return (default 6)
    querystringyesWhat the photo should show

    richview_image_use

    Use a chosen Unsplash photo: registers the download with Unsplash once (as the API guidelines require) and returns ready-to-paste YAML in yaml, an image block or a title_image frontmatter mapping, with a hotlinked src, width, height, the photo’s dominant color (#rrggbb, omitted if the API gives none) and a visible credit (Photo by <name> on Unsplash). Reports may hotlink only credited images.unsplash.com photos. Paste the YAML into the .rmd unchanged and never download or rehost the image. Call it only for a photo that will appear in the report, once per photo. If it fails during download tracking it returns an error without YAML; retrying is safe but may count the download twice.

    ArgumentTypeRequiredDescription
    altstringnoAlt text; defaults to the photo’s description
    asblock, title-imagenoimage fence (default) or title_image frontmatter
    photo_idstringyesid from richview_image_search
    widthintegernoImage width in pixels (default 1600)

    Results and diagnostics

    Report operations carry ok, status, output and diagnostics; MCP exposes that JSON in structuredContent. status: clean means no warnings or errors. ok: true means no errors, so read diagnostics even after a successful operation. isError describes whether an MCP tool could execute. Lines and columns start at 1; a diagnostic’s file names the data or style file when applicable, otherwise its location is in the .rmd.

    learn prints text. serve, server and mcp remain running until stopped. asset and image have their own result objects and transfer exit codes. Diagnostics and repair explains recovery; data and storage describes asset transfer results.

    Use the VS Code extension

    The extension is not on the Visual Studio Marketplace yet. Read the VS Code guide for its native service, trusted workspace, preview, completion, formatting, export and publishing settings.

    A render tool call

    MCP clients construct this request from an ordinary instruction to render a saved report:

    JSON
    {"name":"richview_render","arguments":{"inputPath":"/absolute/path/to/first-report/report.rmd"}}
    
    Was this page useful? Suggest an edit