Skip to content

Reference

The toxvas CLI.

toxvas is the agent-facing half of Toxvas. It reads and writes the same cards/*.md and boards/*.json your app uses — no database, no sync service. Any tool can use it: an AI agent, a script, a cron job.

On this page

Install

In the app, choose Toxvas → Install 'toxvas' Command in PATH…

It symlinks the binary that ships inside the app to /usr/local/bin/toxvas (or /opt/homebrew/bin/toxvas when that is writable), so the command always matches the installed app version.

Verify it with:

which toxvas
toxvas doctor

A development build refuses to own the link — it would point into build/, which is replaced on every rebuild.

Workspace model

The workspace is the folder you run the command in, when it holds TOXVAS_SPEC.md. toxvas doctor says which folder that is.

--root <path> overrides it.

A card's identity is its frontmatter id, never its filename; filenames follow the title.

<ref> anywhere below means a card/board id or any unambiguous part of a name.

Commands

Output is JSON by default, because agents parse JSON. --human switches to tables.

Read

toxvas boards

List boards.

Example: toxvas boards

toxvas cards

List cards.

Example: toxvas cards

toxvas show <ref>

One card.

Example: toxvas show "Press kit"

toxvas board <ref>

One board, with its nodes and edges.

Example: toxvas board "Work"

toxvas search <query>

Full-text search.

Example: toxvas search notary

toxvas links <ref>

Outgoing links and backlinks.

Example: toxvas links "Launch checklist"

toxvas tasks [--done]

Tasks across every card.

Example: toxvas tasks

toxvas tags

Tag counts.

Example: toxvas tags

toxvas schema

The card and board formats.

Example: toxvas schema

toxvas doctor

Can this workspace be worked with?

Example: toxvas doctor

Write

toxvas new --title "..." [--body "..."] [--board <ref>] [--tags a,b] [--x --y] [--tint <name>]

Create a card, optionally placing it on a board.

Example: toxvas new --title "Launch checklist" --board "Work" --tint sage

toxvas append <ref> --text "..."

Add text to a card's body.

Example: toxvas append "Launch checklist" --text "Ask for the review copy."

toxvas set <ref> [--title] [--body] [--tags a,b]

Change a card's title, body or tags.

Example: toxvas set "Launch checklist" --tags launch,work

toxvas move <ref> [--board <ref>] [--x --y] [--tint <name>]

Move a card to a board, position or tint.

Example: toxvas move "Launch checklist" --board "Work" --x 40 --y 40

toxvas link <from> <to> [--board <b>] [--label <text>] [--color <name>]

Connect two cards, optionally drawing the connection on a board.

Example: toxvas link "Launch checklist" "Press kit" --board "Work" --label "blocks"

toxvas task add <ref> --text "..." [--due YYYY-MM-DD]

Add a task to a card.

Example: toxvas task add "Launch checklist" --text "Send the DMG to the notary" --due 2026-11-20

toxvas task done <ref> --line <n>

Complete the task on line n — the line `toxvas tasks` reports.

Example: toxvas task done "Launch checklist" --line 3

toxvas delete <ref>

Delete a card.

Example: toxvas delete "Old draft"

Files

toxvas attach <path>... [--card <ref>] [--board <ref>]

Import a file and put it on a card or board.

Example: toxvas attach ~/Desktop/press.pdf --board "Work"

toxvas detach <file> [--delete-file]

Take a file off boards and cards.

Example: toxvas detach press.pdf

Boards and frames

toxvas board new "<name>"

Create a board.

Example: toxvas board new "Work"

toxvas board delete "<name>"

Delete a board. Cards are kept.

Example: toxvas board delete "Drafts"

toxvas board set <ref> [--name "..."] [--viewport "x,y,zoom"]

Rename a board or set its viewport.

Example: toxvas board set "Work" --name "Launch"

toxvas section --board <b> --title <t> [--include <ref> ...] [--color <name>] [--id <frame>]

Create a section frame, optionally around cards.

Example: toxvas section --board "Work" --title "Press" --include "Press kit"

toxvas section delete --board <b> --title <t>

Delete a section frame. Cards are kept.

Example: toxvas section delete --board "Work" --title "Press"

Flags

--root <path>

The workspace, overriding the folder you are in.

--human

A table instead of JSON.

--body

Include a clipped body (cards).

--full

Include the whole body, never truncated.

--dry-run

Say what would happen, write nothing.

--limit <n>

How many results a list verb returns: boards, cards, tasks, tags, search. The reply carries total and limited, so a page is never mistaken for the whole set.

--help

The help text.

toxvas --version prints the CLI's own version.

Exit codes

0 · ok

Everything asked for happened, and reads back.

1 · usage

The command line was wrong.

2 · not found

No card, board or file by that name.

3 · conflict

The file changed underneath; nothing was written.

4 · problem

It ran, but the result is not sound (a write that did not read back, or a doctor report with findings); the JSON says "ok": false.

Examples

Start by asking the workspace

doctor reports which folder it found and whether it can be worked with; then list the boards.

toxvas doctor
toxvas boards

Create and place a card

toxvas new --title "Launch checklist" --board "Work" --tint sage

Link two cards, and draw the connection

toxvas link "Launch checklist" "Press kit" --board "Work" --label "blocks"

The link is stored by card id, so a rename cannot break it — and the app and the CLI both show the card's title.

Add a task

toxvas task add "Launch checklist" --text "Send the DMG to the notary" --due 2026-11-20

Script against it

JSON out means ordinary tools compose with it — here, the titles of the first fifty cards:

toxvas cards --limit 50 | jq '.cards[].title'

For agents

A Toxvas workspace documents itself: TOXVAS_SPEC.md describes the card and board formats, and AGENTS.md tells an agent how to work in the folder. Read them before scripting against a workspace.

An MCP server exists for agents that speak MCP. For the story of how an agent works here, see the agent section on the front page.