Skip to content

MCP tool reference

Corpus serves the Model Context Protocol at one endpoint, authenticated with a personal API key. The tool list below is generated from the server's tool registry, and a check fails whenever the two differ.

Endpoint

For a client that reads its servers from a JSON file, add this and replace the placeholder with an API key from Integrations → API keys.

{
  "mcpServers": {
    "corpus": {
      "url": "https://api.corpus.schupke.io/api/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_API_KEY>"
      }
    }
  }
}

Claude Code adds the same server from the command line:

claude mcp add --transport http corpus https://api.corpus.schupke.io/api/mcp \
  --header "Authorization: Bearer <YOUR_API_KEY>"

Transport

Streamable HTTP without sessions: every request is a POST that carries its own initialisation, and GET and DELETE are answered with 405, so there is no event stream to keep open. The key goes in the Authorization: Bearer corpus_pat_… header.

An account may make 120 tool calls a minute, and 480 requests a minute of any kind. The handshake a client sends before its first call counts only against the second limit.

What a key reaches

  • Markdown notes: read, search, create, edit, append, find and replace, move, tag, star and delete; list, read, save and restore their versions.
  • Spreadsheets: read the cells, each formula's value and a tab-separated rendering; write some cells or the whole spreadsheet; place, change and remove the plots, geometry figures and formulas over the grid.
  • Drawings: listed, moved, tagged, versioned and deleted like any note, but a drawing's contents cannot be read or drawn through a key.
  • What others share with the account is listed by list_vaults with the role given: a viewer role reads, an editor role also writes.
  • Done in the app only: sharing, members and transfers, uploading files, exports and backups, emptying the trash and deleting saved versions.

Errors

A refused call returns a text result marked as an error, starting with a fixed code and a colon: NOT_FOUND: no note or folder at that path. A write tool called with a read key returns FORBIDDEN.

Every write made with a key is recorded in Integrations → Audit log, including one that failed or was refused.

Tools

41 tools — 15 available to a read key, 26 needing write scope.

list_vaults

List vaultsread

List the vaults this account holds — each one's name and id, and whether it is the personal vault every account has — then what others share with it, each with shared saying whose it is, which vault it is in, whether it is a whole vault, a folder (dir) or a note (file), and the role given: viewer reads, editor writes. Every tool that takes a path also takes vault, by name or id, and a shared folder or note is addressed the same way, its paths starting inside it.

Takes no parameters.

list_tree

List vault treeread

List the vault as a tree of folders and notes. Omit path for the whole vault; pass a folder path to scope the tree to that subtree, and depth to limit how far down it goes. Each note carries docKind (markdown, spreadsheet or canvas) and starred.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathstringoptionalFolder to scope the tree to. Omit for the whole vault.
depthinteger1–10optionalHow many levels below path to include. Defaults to the whole subtree.

list_children

List folder childrenread

List the direct children of one folder (omit path for the vault root). Prefer this over list_tree when you only need one level — it never loads note bodies and never walks the whole vault. depth above 1 includes deeper descendants. Each note carries docKind (markdown, spreadsheet or canvas) and starred.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathstringoptionalFolder whose children are listed. Omit for the vault root.
depthinteger1–10optional1 lists direct children only; higher values include deeper descendants.
limitinteger1–5000optionalMaximum entries to return. The response sets truncated when the cap was reached.

stat

Inspect a pathread

Report whether a vault path is a note or a folder, with its id, canonical stored path and tags. Use it instead of guessing a kind — note paths are stored without the .md extension. A note also reports a docKind: spreadsheet is read and written with the spreadsheet tools, canvas holds a drawing; the text editing tools refuse both.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathstringrequiredVault path to inspect. Note paths are stored without the .md extension.

get_document

Read a noteread

Read a note by vault-relative path. Returns id, path, kind, content, starred, and timestamps. kind says what the note is made of: markdown content is the text; a spreadsheet's content is its raw stored JSON, so read it with get_spreadsheet instead; a canvas holds a drawing and its content is always empty.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathstringrequiredVault-relative path of the note to read.

get_document_by_id

Read a note by idread

Read a note by stable document UUID. Returns path, kind, content, starred, and timestamps. kind says what the note is made of: markdown content is the text; a spreadsheet's content is its raw stored JSON, so read it with get_spreadsheet instead; a canvas holds a drawing and its content is always empty.

NameTypeRequiredDescription
documentIduuidrequiredStable document UUID, as returned by stat or any listing.

list_document_versions

List note versionsread

List a note's saved versions by vault-relative path, newest first, for any kind of note. Each carries byteSize, what it weighs against the account's storage limit, as does current.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathstringrequiredVault-relative path of the note whose versions are listed.

get_document_version

Read a note versionread

Read one saved version's stored body by version UUID. For a markdown note that is its text; for a spreadsheet it is its stored JSON, and for a drawing a manifest of its tiles.

NameTypeRequiredDescription
versionIduuidrequiredVersion UUID, as returned by list_document_versions.

save_document_version

Save a note versionwrite

Keep a note as it is now as a version in its history, for any kind of note. Edits made in the app are saved as they are typed but are not kept in history until a version is saved. created is false when the latest version already shows exactly the current content, and nothing is added.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathstringrequiredVault-relative path of the note to keep a version of.

restore_document_version

Restore a note versionwrite

Restore a saved version by version UUID, for any kind of note. The restored content becomes current and archives the previous current content, so a restore can itself be undone.

NameTypeRequiredDescription
versionIduuidrequiredVersion UUID to restore, as returned by list_document_versions.

create_document

Create a notewrite

Create a markdown note at the given vault-relative path, optionally with initial content. Missing parent folders are created. Fails when the path is taken unless ifExists is 'skip'.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathstringrequiredVault-relative path for the new note, without the .md extension.
contentstringoptionalInitial markdown body. The note starts empty when omitted. Link to another note with [label](/<its id>): a link by id keeps working when that note is renamed or moved.
ifExists"error" | "skip"optional'error' (the default) fails when the path is taken; 'skip' leaves the existing entry alone.

update_document

Overwrite a notewrite

Overwrite the markdown body of a note, creating it (and any missing parent folders) when it does not exist. The body it replaces is kept as a version when the content changed — once per burst: further writes by the same writer within 15 minutes of that version keep no more. versionKept: false in the result means the body was written but the old one was not kept, because the account's storage is full.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathstringrequiredVault-relative path of the note to overwrite. Created when it does not exist.
contentstringrequiredThe complete new markdown body. It replaces the note entirely. Link to another note with [label](/<its id>): a link by id keeps working when that note is renamed or moved.

append_document

Append to a notewrite

Append text to the end of an existing note, atomically. Prefer this over reading a note and writing it back: a concurrent edit cannot be lost. By default a newline is inserted first when the note does not already end with one. Empty text is a no-op. Like an overwrite, the first append of a burst keeps the note as it was as a version; the rest of the burst keeps no more.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathstringrequiredVault-relative path of the note to append to.
textstringrequiredMarkdown added at the end of the note. Empty text is a no-op.
ensureLeadingNewlinebooleanoptionalInsert a newline first when the note does not already end with one. Defaults to true.

replace_in_document

Substitute text in a notewrite

Find and replace inside one note, server-side. mode 'literal' treats find as plain text; 'regex' matches each line separately, so ^ and $ anchor per line and a pattern cannot span a newline. dryRun reports what would change without writing. A run that changes nothing leaves the note, and its modified time, untouched.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathstringrequiredVault-relative path of the note to edit.
findstringmax 1000 charsrequiredThe text or regular expression to search for, per mode.
replacestringrequiredWhat each match becomes. Empty string deletes the match.
mode"literal" | "regex"optional'literal' (the default) treats find as plain text; 'regex' matches line by line.
ignoreCasebooleanoptionalMatch without regard to case. Defaults to false.
allbooleanoptionalReplace every match rather than only the first. Defaults to false.
maxReplacementsinteger1–9007199254740991optionalStop after this many replacements.
dryRunbooleanoptionalReport what would change without writing anything.

delete_document

Delete a notewritedestructive

Move the note at the given vault path to the trash. It comes back with restore_from_trash for 30 days, using the id this returns.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathstringrequiredVault-relative path of the note to delete.

create_spreadsheet

Create a spreadsheetwrite

Create a spreadsheet at the given vault-relative path, optionally with initial cells. Missing parent folders are created. Fails when the path is taken unless ifExists is 'skip'.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathstringrequiredVault-relative path for the new spreadsheet.
cellsobject[]optionalInitial cells. The spreadsheet starts empty when omitted.
cells[].refstringrequiredA1-style cell reference, e.g. B12. Case sensitive: columns are upper case.
cells[].rawstringmax 1000 charsrequiredThe cell's text exactly as it would be typed. A leading = makes it a formula: =SUM(B1:B9). Supported functions are SUM, AVG (or AVERAGE), MIN, MAX and COUNT, plus + - * / ^, & to join text, and parentheses. A leading apostrophe keeps a value as text exactly as typed, e.g. '01234. Write dates and times in ISO — 2026-10-07, 2026-10-07 14:30, 14:30 — and they are dates: they sort by date and subtract to a number of days. Any other date form is stored as text. A cell can hold links among its text and shows each as its label. Link to another note with [label](/<its id>): a link by id keeps working when that note is renamed or moved.
figuresobject[]optionalFigures to place over the grid, each with at, kind and source (and no id).
figures[].iduuidoptionalThe figure to change or remove, as get_spreadsheet lists it. Omit to add one.
figures[].removebooleanoptionalRemove the figure id names.
figures[].atstringoptionalThe cell the figure's top-left corner sits on. Required to add one.
figures[].kind"plot" | "geometry" | "formula" | "chart"optionalplot, geometry, formula or chart. Required to add one.
figures[].sourcestringoptionalWhat the figure draws. Required to add one. A plot or geometry figure is written in the same language as a note's ```plot or ```geometry fence; a formula is TeX, as between a note's $$. A chart is drawn from this spreadsheet's own cells, one statement a line: categories A2:A7 for the names along its axis, then a series per line — column B2:B7, line C2:C7, or one pie B2:B7 alone — each one row or one column, taking label B1 (a cell) or label "text", color red, and right to draw against a second value axis. title "…" heads it; x: label "…", y: 0 .. 100 label "…" ticks 20 and y2: (the right axis) set the axes. Its ranges follow their cells when rows or columns are inserted or deleted.
figures[].widthnumberoptionalWidth in CSS pixels; the height follows the drawing's shape. A new figure is about three columns wide unless this says otherwise.
figures[].lockedbooleanoptionalLock the figure in place (true) or let it move again (false). A locked figure is not moved, resized or removed unless the same change sets this to false; its source can still be rewritten.
ifExists"error" | "skip"optional'error' (the default) fails when the path is taken; 'skip' leaves the existing entry alone.

get_spreadsheet

Read a spreadsheetread

Read a spreadsheet. Returns tsv, a tab-separated rendering with one line per row; cells, the raw text of every filled cell keyed by A1 reference, with formulas as written; values, what each formula cell evaluates to, keyed the same way; and figures, the plots, geometry figures, formulas and charts placed over the grid, each with the cell it sits on and whether it is locked in place. Write back with set_cells using the raw text, never the value, and change figures with set_spreadsheet_figures.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathstringrequiredVault-relative path of the spreadsheet to read.

set_cells

Write cells in a spreadsheetwrite

Write individual cells, leaving every other cell as it is. Send an empty string to clear a cell. The spreadsheet grows to cover any cell written past its current extent. Formatting already on a cell is kept. The previous state is archived as a version unless snapshot is false.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathstringrequiredVault-relative path of the spreadsheet.
cellsobject[]requiredCells to write. Anything not listed is left as it is.
cells[].refstringrequiredA1-style cell reference, e.g. B12. Case sensitive: columns are upper case.
cells[].rawstringmax 1000 charsrequiredThe cell's text exactly as it would be typed. A leading = makes it a formula: =SUM(B1:B9). Supported functions are SUM, AVG (or AVERAGE), MIN, MAX and COUNT, plus + - * / ^, & to join text, and parentheses. A leading apostrophe keeps a value as text exactly as typed, e.g. '01234. Write dates and times in ISO — 2026-10-07, 2026-10-07 14:30, 14:30 — and they are dates: they sort by date and subtract to a number of days. Any other date form is stored as text. A cell can hold links among its text and shows each as its label. Link to another note with [label](/<its id>): a link by id keeps working when that note is renamed or moved.
snapshotbooleanoptionalArchive the spreadsheet as it was before this write, so the change can be restored. Defaults to true; pass false only for a run of small edits whose intermediate states are not worth keeping.

replace_spreadsheet

Replace a spreadsheet's cellswritedestructive

Replace every cell in a spreadsheet with the given set, discarding anything not listed. Use set_cells to change part of a spreadsheet; this is for rewriting one wholesale. Cell formatting is discarded with the old cells; figures placed over the grid are kept. The previous state is archived as a version unless snapshot is false.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathstringrequiredVault-relative path of the spreadsheet.
cellsobject[]requiredThe complete new set of cells. Anything omitted is cleared.
cells[].refstringrequiredA1-style cell reference, e.g. B12. Case sensitive: columns are upper case.
cells[].rawstringmax 1000 charsrequiredThe cell's text exactly as it would be typed. A leading = makes it a formula: =SUM(B1:B9). Supported functions are SUM, AVG (or AVERAGE), MIN, MAX and COUNT, plus + - * / ^, & to join text, and parentheses. A leading apostrophe keeps a value as text exactly as typed, e.g. '01234. Write dates and times in ISO — 2026-10-07, 2026-10-07 14:30, 14:30 — and they are dates: they sort by date and subtract to a number of days. Any other date form is stored as text. A cell can hold links among its text and shows each as its label. Link to another note with [label](/<its id>): a link by id keeps working when that note is renamed or moved.
snapshotbooleanoptionalArchive the spreadsheet as it was before this write, so the change can be restored. Defaults to true; pass false only for a run of small edits whose intermediate states are not worth keeping.

set_spreadsheet_figures

Place, change or remove figures on a spreadsheetwrite

Add, change or remove the plots, geometry figures, formulas and charts placed over a spreadsheet's grid, in the order given. To add one, give at, kind and source; to change one, its id and what changes — moving it to another cell, a new source, a new width, locking it in place; to remove one, its id and remove: true. A figure locked in place is moved, resized or removed only by a change that also sets locked: false. A source that does not draw is refused and nothing is written. A spreadsheet holds at most 50 figures. Cells are not touched. The previous state is archived as a version unless snapshot is false. A plot or geometry figure is written in the same language as a note's ```plot or ```geometry fence; a formula is TeX, as between a note's $$. A chart is drawn from this spreadsheet's own cells, one statement a line: categories A2:A7 for the names along its axis, then a series per line — column B2:B7, line C2:C7, or one pie B2:B7 alone — each one row or one column, taking label B1 (a cell) or label "text", color red, and right to draw against a second value axis. title "…" heads it; x: label "…", y: 0 .. 100 label "…" ticks 20 and y2: (the right axis) set the axes. Its ranges follow their cells when rows or columns are inserted or deleted.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathstringrequiredVault-relative path of the spreadsheet.
figuresobject[]1–∞ itemsrequiredThe changes, applied in order.
figures[].iduuidoptionalThe figure to change or remove, as get_spreadsheet lists it. Omit to add one.
figures[].removebooleanoptionalRemove the figure id names.
figures[].atstringoptionalThe cell the figure's top-left corner sits on. Required to add one.
figures[].kind"plot" | "geometry" | "formula" | "chart"optionalplot, geometry, formula or chart. Required to add one.
figures[].sourcestringoptionalWhat the figure draws. Required to add one. A plot or geometry figure is written in the same language as a note's ```plot or ```geometry fence; a formula is TeX, as between a note's $$. A chart is drawn from this spreadsheet's own cells, one statement a line: categories A2:A7 for the names along its axis, then a series per line — column B2:B7, line C2:C7, or one pie B2:B7 alone — each one row or one column, taking label B1 (a cell) or label "text", color red, and right to draw against a second value axis. title "…" heads it; x: label "…", y: 0 .. 100 label "…" ticks 20 and y2: (the right axis) set the axes. Its ranges follow their cells when rows or columns are inserted or deleted.
figures[].widthnumberoptionalWidth in CSS pixels; the height follows the drawing's shape. A new figure is about three columns wide unless this says otherwise.
figures[].lockedbooleanoptionalLock the figure in place (true) or let it move again (false). A locked figure is not moved, resized or removed unless the same change sets this to false; its source can still be rewritten.
snapshotbooleanoptionalArchive the spreadsheet as it was before this write, so the change can be restored. Defaults to true; pass false only for a run of small edits whose intermediate states are not worth keeping.

create_folder

Create a folderwrite

Create a folder at the given vault path, creating any missing parents. Fails when the path is taken unless ifExists is 'skip'.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathstringrequiredVault path for the new folder. Missing parents are created.
ifExists"error" | "skip"optional'error' (the default) fails when the path is taken; 'skip' leaves the existing folder alone.

move_entry

Move or renamewrite

Move a note or folder to an explicit destination path — re-parent, rename, or both in one call. When to names an existing folder the entry moves into it keeping its own name (as mv does). Missing parent folders are created. kind is inferred unless given.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
fromstringrequiredCurrent vault path of the note or folder to move.
tostringrequiredDestination path. Naming an existing folder moves the entry into it under its own name.
kind"file" | "dir"optionalWhether the path is a note ('file') or a folder ('dir'). Inferred when omitted.

rename

Rename in placewrite

Rename a note or folder, keeping its parent. kind is inferred when omitted. Prefer move_entry, which can rename and re-parent in one call.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathstringrequiredVault path of the note or folder to rename.
newNamestringrequiredThe new name, without any slashes. The parent is unchanged.
kind"file" | "dir"optionalWhether the path is a note ('file') or a folder ('dir'). Inferred when omitted.

move

Move under a parentwrite

Move a note or folder under a new parent folder, keeping its name. Omit toParent for the vault root. Prefer move_entry, which takes a full destination path.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
fromstringrequiredCurrent vault path of the note or folder to move.
toParentstringoptionalFolder to move it under, keeping its name. Omit for the vault root.

delete_path

Delete a note or folderwritedestructive

Move a note or folder at the given vault path to the trash, with everything under it; it comes back with restore_from_trash for 30 days. kind is inferred when omitted; a path claimed by both a note and a folder is refused rather than guessed. recursive defaults to true; pass false to refuse a folder instead, which lets a client enforce an rm -r style guard without a separate lookup.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathstringrequiredVault path of the note or folder to delete.
kind"file" | "dir"optionalWhether the path is a note ('file') or a folder ('dir'). Inferred when omitted.
recursivebooleanoptionalDefaults to true. Pass false to refuse the call when the path is a folder.

list_tags

List tagsread

List every tag in the vault with how many notes and folders carry each one. A tag with zero uses is normal: tags outlive their assignments and are only removed by delete_tag.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.

get_tags

Get an entry's tagsread

Read the tags on one note or folder, by vault path.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathstringrequiredVault path of the note or folder.
kind"file" | "dir"optionalWhether the path is a note ('file') or a folder ('dir'). Inferred when omitted.

create_tag

Create a tagwrite

Create a tag in the vault without attaching it to anything. Only needed to pick a colour up front — set_tags and add_tags create missing tags on their own. Fails when the name is taken, ignoring case.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
namestringmax 64 charsrequiredTag name. Stored with this casing; matched ignoring case.
colorstring | nulloptionalHex colour, '#rgb' or '#rrggbb'. Omit or pass null for no colour.

update_tag

Rename or recolour a tagwrite

Rename a tag, change its colour, or both. Renaming keeps every assignment. Pass color: null to clear the colour; omit the field to leave it alone.

NameTypeRequiredDescription
iduuidrequiredTag id, from list_tags.
namestringmax 64 charsoptionalNew name. Omit to keep the current one.
colorstring | nulloptionalNew hex colour, or null to clear it. Omit to leave the colour unchanged.

delete_tag

Delete a tagwritedestructive

Remove a tag from the vault. Allowed while it is in use: every note and folder carrying it loses it. This is the only thing that removes a tag — nothing prunes unused ones.

NameTypeRequiredDescription
iduuidrequiredTag id, from list_tags.

set_tags

Replace an entry's tagswrite

Replace the whole tag set on one note or folder. Pass an empty array to clear it. Prefer add_tags or remove_tags when changing one tag, since those cannot clobber a concurrent edit to another.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathstringrequiredVault path of the note or folder.
tagsstring[]0–50 itemsrequiredTag names. Any name that does not exist yet is created, so there is no separate create step. Matching ignores case: 'Work' finds an existing 'work'.
kind"file" | "dir"optionalWhether the path is a note ('file') or a folder ('dir'). Inferred when omitted.

add_tags

Add tags to an entrywrite

Add tags to a note or folder, leaving the ones already on it alone. Names that do not exist yet are created.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathstringrequiredVault path of the note or folder.
tagsstring[]0–50 itemsrequiredTag names. Any name that does not exist yet is created, so there is no separate create step. Matching ignores case: 'Work' finds an existing 'work'.
kind"file" | "dir"optionalWhether the path is a note ('file') or a folder ('dir'). Inferred when omitted.

remove_tags

Remove tags from an entrywrite

Take tags off a note or folder. The tags stay in the vault; only the assignments go. Names not on the note or folder are ignored.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathstringrequiredVault path of the note or folder.
tagsstring[]0–50 itemsrequiredTag names. Any name that does not exist yet is created, so there is no separate create step. Matching ignores case: 'Work' finds an existing 'work'.
kind"file" | "dir"optionalWhether the path is a note ('file') or a folder ('dir'). Inferred when omitted.

bulk_move

Move many entries at oncewrite

Move or rename up to 100 notes and folders in a single transaction — either all of them move or none do. Each entry gives its own destination, so one call can re-parent some entries and rename others. When a to names an existing folder the entry moves into it keeping its own name. Prefer this over repeating move_entry: it is atomic, and it counts as one request against the rate limit.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
entriesobject[]1–100 itemsrequiredThe moves to apply, up to 100. All of them succeed or none do.
entries[].fromstringrequiredCurrent vault path of the entry to move.
entries[].tostringrequiredDestination path. An existing folder here takes the entry under its own name.
entries[].kind"file" | "dir"optionalWhether this entry is a note ('file') or a folder ('dir'). Inferred when omitted.

bulk_delete

Delete many entries at oncewritedestructive

Move up to 100 notes and folders to the trash in a single transaction — either all of them go or none do. A folder takes everything under it. Each comes back with restore_from_trash for 30 days. Naming both a folder and something inside it is fine: the inner path is covered by the folder and is not reported separately. A path claimed by both a note and a folder is refused rather than guessed. recursive defaults to true and applies to the whole batch; pass false to refuse the batch if any entry is a folder.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathsstring[]1–100 itemsrequiredVault paths to delete, up to 100. All of them go or none do.
recursivebooleanoptionalDefaults to true, and applies to the whole batch. False refuses a batch containing a folder.

get_storage_usage

Read storage usageread

Report what the account stores against its storage limit, in bytes: notes (current note and spreadsheet bodies), history (saved versions), drawings, files (attachments), backups, exports (notes saved as PDF, PNG, CSV, XLSX or Markdown files), their total used, and the quota. A write that would pass the quota is refused with STORAGE_QUOTA_EXCEEDED; deleting old versions in the app is the usual way back under it.

Takes no parameters.

list_starred

List starred notesread

List every starred note in the caller's own vaults, most recently edited first, with its vault, id, path, docKind and modified time. Folders cannot be starred.

Takes no parameters.

set_starred

Star or unstar a notewrite

Star or unstar one note. Takes the state it should end in rather than toggling, so repeating the call changes nothing. Starred notes are listed first in the app and rank first in search. Folders cannot be starred.

NameTypeRequiredDescription
vaultstringrequiredThe vault, by name (matched ignoring case) or id. list_vaults lists them.
pathstringrequiredVault-relative path of the note.
starredbooleanrequiredtrue to star the note, false to unstar it.

list_trash

List deleted entriesread

List the notes and folders in the trash, newest first, across every vault or the one vault names: the entry id to restore it by, the vault and path it was at, when it was deleted and when it will be removed for good. Deleted entries are kept for 30 days.

NameTypeRequiredDescription
vaultstringoptionalOnly this vault, by name (matched ignoring case) or id. Omit for every vault.

restore_from_trash

Restore a deleted entrywrite

Put a deleted note or folder back where it was, with its history and tags. If something new now holds that path, the restored entry is renamed — plan (restored) — rather than refused; the result says where it went.

NameTypeRequiredDescription
iduuidrequiredThe trash entry's id, from list_trash or a delete's result.