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_vaultswith 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 vaultsreadList 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 treereadList 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.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
path | string | optional | Folder to scope the tree to. Omit for the whole vault. |
depth | integer1–10 | optional | How many levels below path to include. Defaults to the whole subtree. |
list_children
List folder childrenreadList 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.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
path | string | optional | Folder whose children are listed. Omit for the vault root. |
depth | integer1–10 | optional | 1 lists direct children only; higher values include deeper descendants. |
limit | integer1–5000 | optional | Maximum entries to return. The response sets truncated when the cap was reached. |
stat
Inspect a pathreadReport 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.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
path | string | required | Vault path to inspect. Note paths are stored without the .md extension. |
get_document
Read a notereadRead 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.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
path | string | required | Vault-relative path of the note to read. |
get_document_by_id
Read a note by idreadRead 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.
| Name | Type | Required | Description |
|---|---|---|---|
documentId | uuid | required | Stable document UUID, as returned by stat or any listing. |
search
Search notesreadSearch every vault, or the one vault names, case-insensitively, for a plain substring (not a pattern). Note hits come back in hits, carrying the vault it is in, the note path, its docKind and a 1-based line number, or line 0 when the query matched the note's name (matchKind 'name') or the name of one of its tags (matchKind 'tag') rather than its body. A spreadsheet is searched by the text of its cells: its line is the spreadsheet row and cellRef names the cell. A drawing is searched by its description: its line is the description's line. docKinds narrows note hits to markdown, canvas or spreadsheet. Folder hits come back separately in folders, also naming their vault, and only when kinds asks for them. matchPath widens matching to the full vault path, so a query of 'projects' also finds notes inside a folder of that name.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | optional | Only this vault, by name (matched ignoring case) or id. Omit for every vault. |
query | stringmax 500 chars | required | Text to look for in note names and note bodies. May be empty only when tags is given. |
limit | integer1–200 | optional | Maximum hits to return. |
kinds | "file" | "dir"[]1–∞ items | optional | Which kinds to search. Folder hits come back only when 'dir' is included. |
matchPath | boolean | optional | Also match the full vault path, so a query finds notes inside a folder of that name. |
docKinds | "markdown" | "canvas" | "spreadsheet"[]1–∞ items | optional | Only notes of these kinds. Every kind when left out. |
tags | string[]1–50 items | optional | Restrict to entries carrying ALL of these tags, matched ignoring case. With tags set, query may be empty, which lists everything carrying them. |
list_document_versions
List note versionsreadList 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.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
path | string | required | Vault-relative path of the note whose versions are listed. |
get_document_version
Read a note versionreadRead 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.
| Name | Type | Required | Description |
|---|---|---|---|
versionId | uuid | required | Version UUID, as returned by list_document_versions. |
save_document_version
Save a note versionwriteKeep 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.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
path | string | required | Vault-relative path of the note to keep a version of. |
restore_document_version
Restore a note versionwriteRestore 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.
| Name | Type | Required | Description |
|---|---|---|---|
versionId | uuid | required | Version UUID to restore, as returned by list_document_versions. |
create_document
Create a notewriteCreate 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'.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
path | string | required | Vault-relative path for the new note, without the .md extension. |
content | string | optional | Initial 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 notewriteOverwrite 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.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
path | string | required | Vault-relative path of the note to overwrite. Created when it does not exist. |
content | string | required | The 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 notewriteAppend 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.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
path | string | required | Vault-relative path of the note to append to. |
text | string | required | Markdown added at the end of the note. Empty text is a no-op. |
ensureLeadingNewline | boolean | optional | Insert a newline first when the note does not already end with one. Defaults to true. |
replace_in_document
Substitute text in a notewriteFind 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.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
path | string | required | Vault-relative path of the note to edit. |
find | stringmax 1000 chars | required | The text or regular expression to search for, per mode. |
replace | string | required | What 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. |
ignoreCase | boolean | optional | Match without regard to case. Defaults to false. |
all | boolean | optional | Replace every match rather than only the first. Defaults to false. |
maxReplacements | integer1–9007199254740991 | optional | Stop after this many replacements. |
dryRun | boolean | optional | Report what would change without writing anything. |
delete_document
Delete a notewritedestructiveMove 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.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
path | string | required | Vault-relative path of the note to delete. |
create_spreadsheet
Create a spreadsheetwriteCreate 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'.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
path | string | required | Vault-relative path for the new spreadsheet. |
cells | object[] | optional | Initial cells. The spreadsheet starts empty when omitted. |
cells[].ref | string | required | A1-style cell reference, e.g. B12. Case sensitive: columns are upper case. |
cells[].raw | stringmax 1000 chars | required | The 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. |
figures | object[] | optional | Figures to place over the grid, each with at, kind and source (and no id). |
figures[].id | uuid | optional | The figure to change or remove, as get_spreadsheet lists it. Omit to add one. |
figures[].remove | boolean | optional | Remove the figure id names. |
figures[].at | string | optional | The cell the figure's top-left corner sits on. Required to add one. |
figures[].kind | "plot" | "geometry" | "formula" | "chart" | optional | plot, geometry, formula or chart. Required to add one. |
figures[].source | string | optional | What 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[].width | number | optional | Width in CSS pixels; the height follows the drawing's shape. A new figure is about three columns wide unless this says otherwise. |
figures[].locked | boolean | optional | Lock 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 spreadsheetreadRead 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.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
path | string | required | Vault-relative path of the spreadsheet to read. |
set_cells
Write cells in a spreadsheetwriteWrite 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.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
path | string | required | Vault-relative path of the spreadsheet. |
cells | object[] | required | Cells to write. Anything not listed is left as it is. |
cells[].ref | string | required | A1-style cell reference, e.g. B12. Case sensitive: columns are upper case. |
cells[].raw | stringmax 1000 chars | required | The 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. |
snapshot | boolean | optional | Archive 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 cellswritedestructiveReplace 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.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
path | string | required | Vault-relative path of the spreadsheet. |
cells | object[] | required | The complete new set of cells. Anything omitted is cleared. |
cells[].ref | string | required | A1-style cell reference, e.g. B12. Case sensitive: columns are upper case. |
cells[].raw | stringmax 1000 chars | required | The 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. |
snapshot | boolean | optional | Archive 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 spreadsheetwriteAdd, 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.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
path | string | required | Vault-relative path of the spreadsheet. |
figures | object[]1–∞ items | required | The changes, applied in order. |
figures[].id | uuid | optional | The figure to change or remove, as get_spreadsheet lists it. Omit to add one. |
figures[].remove | boolean | optional | Remove the figure id names. |
figures[].at | string | optional | The cell the figure's top-left corner sits on. Required to add one. |
figures[].kind | "plot" | "geometry" | "formula" | "chart" | optional | plot, geometry, formula or chart. Required to add one. |
figures[].source | string | optional | What 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[].width | number | optional | Width in CSS pixels; the height follows the drawing's shape. A new figure is about three columns wide unless this says otherwise. |
figures[].locked | boolean | optional | Lock 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. |
snapshot | boolean | optional | Archive 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 folderwriteCreate a folder at the given vault path, creating any missing parents. Fails when the path is taken unless ifExists is 'skip'.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
path | string | required | Vault 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 renamewriteMove 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.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
from | string | required | Current vault path of the note or folder to move. |
to | string | required | Destination path. Naming an existing folder moves the entry into it under its own name. |
kind | "file" | "dir" | optional | Whether the path is a note ('file') or a folder ('dir'). Inferred when omitted. |
rename
Rename in placewriteRename a note or folder, keeping its parent. kind is inferred when omitted. Prefer move_entry, which can rename and re-parent in one call.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
path | string | required | Vault path of the note or folder to rename. |
newName | string | required | The new name, without any slashes. The parent is unchanged. |
kind | "file" | "dir" | optional | Whether the path is a note ('file') or a folder ('dir'). Inferred when omitted. |
move
Move under a parentwriteMove 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.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
from | string | required | Current vault path of the note or folder to move. |
toParent | string | optional | Folder to move it under, keeping its name. Omit for the vault root. |
delete_path
Delete a note or folderwritedestructiveMove 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.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
path | string | required | Vault path of the note or folder to delete. |
kind | "file" | "dir" | optional | Whether the path is a note ('file') or a folder ('dir'). Inferred when omitted. |
recursive | boolean | optional | Defaults to true. Pass false to refuse the call when the path is a folder. |
create_tag
Create a tagwriteCreate 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.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
name | stringmax 64 chars | required | Tag name. Stored with this casing; matched ignoring case. |
color | string | null | optional | Hex colour, '#rgb' or '#rrggbb'. Omit or pass null for no colour. |
update_tag
Rename or recolour a tagwriteRename 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.
| Name | Type | Required | Description |
|---|---|---|---|
id | uuid | required | Tag id, from list_tags. |
name | stringmax 64 chars | optional | New name. Omit to keep the current one. |
color | string | null | optional | New hex colour, or null to clear it. Omit to leave the colour unchanged. |
delete_tag
Delete a tagwritedestructiveRemove 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.
| Name | Type | Required | Description |
|---|---|---|---|
id | uuid | required | Tag id, from list_tags. |
bulk_move
Move many entries at oncewriteMove 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.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
entries | object[]1–100 items | required | The moves to apply, up to 100. All of them succeed or none do. |
entries[].from | string | required | Current vault path of the entry to move. |
entries[].to | string | required | Destination path. An existing folder here takes the entry under its own name. |
entries[].kind | "file" | "dir" | optional | Whether this entry is a note ('file') or a folder ('dir'). Inferred when omitted. |
bulk_delete
Delete many entries at oncewritedestructiveMove 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.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
paths | string[]1–100 items | required | Vault paths to delete, up to 100. All of them go or none do. |
recursive | boolean | optional | Defaults to true, and applies to the whole batch. False refuses a batch containing a folder. |
get_storage_usage
Read storage usagereadReport 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 notesreadList 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 notewriteStar 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.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | required | The vault, by name (matched ignoring case) or id. list_vaults lists them. |
path | string | required | Vault-relative path of the note. |
starred | boolean | required | true to star the note, false to unstar it. |
list_trash
List deleted entriesreadList 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.
| Name | Type | Required | Description |
|---|---|---|---|
vault | string | optional | Only this vault, by name (matched ignoring case) or id. Omit for every vault. |
restore_from_trash
Restore a deleted entrywritePut 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.
| Name | Type | Required | Description |
|---|---|---|---|
id | uuid | required | The trash entry's id, from list_trash or a delete's result. |