MCP tools
Every tool the hosted MCP server lists.
View as MarkdownWhat tools/list returns on https://api.lydie.co/mcp. The local server in the desktop app lists the same tools. Use run_operation for anything not listed here; MCP server explains how to connect.
create_doc
Create a document. Creates a document in a workspace, optionally under a parent and with an initial Markdown body. Without afterId/beforeId it is appended as the last child.
- idULID
Client-minted id. Generated when omitted.
Default
nullDefault
"Untitled"- propertiesobject
Default
{} - markdownstring
Initial body as Lydie Markdown.
Hosted: the teamspace a top-level page goes into (null or absent: the creator's private section). Ignored for child pages, which share their parent's space, and in local mode.
- afterIdULID
Place directly after this sibling.
- beforeIdULID
Place directly before this sibling.
Explicit fractional key. Overrides afterId/beforeId; recorded by clients so replays converge.
rename_doc
Rename a document.
move_doc
Move a document. Moves a document (and its subtree) under a new parent, or to the top level with parentId null. Without afterId/beforeId it becomes the last child.
delete_doc
Delete a document. Soft-deletes a document and its subtree. Restore it with doc.restore. Deleting a deleted document is a no-op.
restore_doc
Restore a deleted document. Restores a soft-deleted document and the part of its subtree deleted with it. If its parent is gone it is restored to the top level.
purge_doc
Permanently delete a document. Permanently deletes a document in the trash, its trashed subtree, bodies and outgoing links. Links to it become unresolved. Cannot be undone.
set_doc_properties
Set document properties. Merges set into the document's properties and removes the keys in unset.
update_doc
Update a document body. Replaces the body with markdown, or applies edits (exact old/new string replacements against the Markdown returned by doc.get). Edits that do not match exactly once are skipped and reported in warnings. Pass expectedVersion to fail with a conflict if the body changed since you read it.
- markdownstring
Show 3 fieldsHide fields
- replaceAllboolean
Default
false
- expectedVersionstring
fetch_doc
Get a document. Returns a document's metadata and, unless includeBody is false, its Markdown body.
- includeBodyboolean
Default
true
list_docs
List the document tree. Lists documents depth-first in tree order. With rootId, lists that document's descendants only.
- rootIdULID
- includeDeletedboolean
Default
false
list_children
List a document's children. Lists the direct children of a document (or the top level when parentId is omitted) in order, each with its number of live children. Use it to load a tree level by level.
- parentIdULID
Omit for the top level.
- includeDeletedboolean
Default
false
search
Search documents. Full-text search over titles and bodies. Words are matched as prefixes; all words must match.
Default
20
list_backlinks
List backlinks. Lists live documents that link to this document.
list_block_backlinks
List backlinks to a block. Lists live documents that link to one block ([[Note#^blockId]]) of this document.
list_outgoing_links
List outgoing links. Lists the links in this document (body first, then properties, in document order), each with the live document it resolves to or null.
list_unlinked_mentions
List unlinked mentions. Lists live documents whose text mentions this document's title without linking to it.
list_unresolved_links
List unresolved links. Lists links in live documents whose target does not exist (yet).
list_trash
List the trash. Lists what is in a workspace's trash, newest first. A document deleted with its subtree is one item; restoring it restores the subtree.
Default
100
empty_trash
Empty the trash. Permanently deletes everything in a workspace's trash. Cannot be undone.
create_attachment
Add an attachment. Records an attachment whose bytes are already stored under their SHA-256 (the Blob port locally, an upload URL when hosted). Several attachments may share the same bytes.
- idULID
Client-minted id. Generated when omitted.
Default
null
delete_attachment
Delete an attachment. Moves an attachment to the trash. Restore it with attachment.restore.
restore_attachment
Restore an attachment.
purge_attachment
Permanently delete an attachment. Permanently deletes an attachment in the trash. Its bytes are removed when no other attachment uses them. Cannot be undone.
get_attachment
Get an attachment.
list_attachments
List attachments. Lists a workspace's attachments, or one document's, newest first.
- documentIdULID
- includeDeletedboolean
Default
false
list_sessions
List agent sessions. Lists sessions that changed a workspace, most recent first.
Default
50
list_session_changes
List a session's changes. Lists every operation a session applied, oldest first.
undo_session
Undo a session. Reverts every change a session made, newest first, as one undoable step. Changes that later edits by others touched are skipped and reported, as are changes that cannot be undone.
create_database
Create a database. Creates a database: a document whose children are its rows. With documentId, turns an existing document into a database (its children become rows). Starts with a title property and one view.
- idULID
Client-minted id of the new database document.
- documentIdULID
Turn this existing document into a database.
Default
nullDefault
"Untitled database"Hosted: the teamspace a new top-level database goes into (null or absent: the creator's private section). Ignored with parentId or documentId, and in local mode.
- afterIdULID
Place directly after this sibling.
- beforeIdULID
Place directly before this sibling.
Explicit fractional key (recorded so replays converge).
- viewTypestring
One of
tableboardlistcalendargalleryDefault
"table" - titlePropertyIdULID
- viewIdULID
get_database
Get a database. Returns a database's settings, live properties and views, in order.
list_databases
List databases. Lists the live databases of a workspace (database documents not in the trash).
query_database
Query a database. Returns one window of a view's rows (filtered, sorted, grouped), with the total and group counts. Pass viewId for a saved view, or view for an ad-hoc one (both: view overrides). uniqueId values are numbers (shown as prefix-number, e.g. LYD-12); filters take 12 or "LYD-12".
- viewIdULID
- viewobject
Show 2 fieldsHide fields
- typestring
One of
tableboardlistcalendargalleryDefault
"table" - configViewConfigPatchInput
Default
{}Show 9 fieldsHide fields
- sortsobject[]
Show 2 fieldsHide fields
- directionstring
One of
ascdescDefault
"asc"
Show 6 fieldsHide fields
- directionstring
One of
ascdescDefault
"asc" - orderstring[]
- hideEmptyboolean
Hide groups with no rows (board columns).
- dateBucketstring
Date grouping; default month.
One of
dayweekmonthyear - collapsedstring[]
Board swimlanes.
Show 6 fieldsHide fields
- directionstring
One of
ascdescDefault
"asc" - orderstring[]
- hideEmptyboolean
Hide groups with no rows (board columns).
- dateBucketstring
Date grouping; default month.
One of
dayweekmonthyear - collapsedstring[]
- columnsViewColumnInput[]
Show 3 fieldsHide fields
- visibleboolean
Default
true
- summariesobject
propertyId → summary name
- layoutViewLayoutInput
Show 11 fieldsHide fields
- rowHeightstring
table
One of
shortmediumtallextra - wrapCellsboolean
table
board, gallery: px
board, gallery: the card image
- coverFitstring
One of
covercontain - markersstring
list
One of
bulletnumbernone calendar: the date property placing rows
- calendarModestring
One of
monthweek - showWeekendsboolean
- colorColumnsboolean
board
- extraobject
- windowobject
Default
{"offset":0,"limit":100} - todaystring
The caller's local date for relative date filters. Default: the server's.
write_database_rows
Write database rows. Creates, updates and deletes rows in one step. A row without id is created; with id it is updated (title renames it); delete: true moves it to the trash. values are keyed by property id, frontmatter key or name; relation values are row ids; select values are option names (new names become options); uniqueId values are numbers (pass 12 or "LYD-12"; new rows get the next number). unset clears properties.
change_database_schema
Change a database's properties. Adds, changes and removes properties in one step. update can rename (name), change the type (values are converted), the frontmatter key or the config (options, relation, number format, formula expression). Removed properties keep their values in the rows.
- addobject[]
Default
[]Show 4 fieldsHide fields
One of
titletextnumberselectmultiSelectstatusdatecheckboxurlemailphonepersonfilesrelationrollupformulauniqueIdcreatedTimeupdatedTimecreatedByupdatedBy- configPropertyConfigSpecInput
Show 11 fieldsHide fields
- optionsobject[]
select, multiSelect, status
- numberFormatstring
One of
numberintegercommaspercentcurrency ISO 4217 code, with numberFormat currency
- includeTimeboolean
date: values carry a time
- rangeboolean
date: values may carry an end (start/end)
- relationRelationConfigInput
Show 4 fieldsHide fields
- rollupRollupConfigInput
Show 3 fieldsHide fields
A property of the related database.
One of
showOriginalshowUniquecountcountValuescountUniquecountEmptycountNotEmptypercentEmptypercentNotEmptysumaveragemedianminmaxrangeearliestlatestcheckeduncheckedpercentCheckedpercentUnchecked
- expressionstring
formula: an Obsidian Bases expression
uniqueId: shown before the number ("LYD" → LYD-12)
- extraobject
- updateobject[]
Default
[]Show 5 fieldsHide fields
A property's id, frontmatter key or name (case-insensitive).
- typestring
One of
titletextnumberselectmultiSelectstatusdatecheckboxurlemailphonepersonfilesrelationrollupformulauniqueIdcreatedTimeupdatedTimecreatedByupdatedBy - configPropertyConfigSpecInput
Show 11 fieldsHide fields
- optionsobject[]
select, multiSelect, status
- numberFormatstring
One of
numberintegercommaspercentcurrency ISO 4217 code, with numberFormat currency
- includeTimeboolean
date: values carry a time
- rangeboolean
date: values may carry an end (start/end)
- relationRelationConfigInput
Show 4 fieldsHide fields
- rollupRollupConfigInput
Show 3 fieldsHide fields
A property of the related database.
One of
showOriginalshowUniquecountcountValuescountUniquecountEmptycountNotEmptypercentEmptypercentNotEmptysumaveragemedianminmaxrangeearliestlatestcheckeduncheckedpercentCheckedpercentUnchecked
- expressionstring
formula: an Obsidian Bases expression
uniqueId: shown before the number ("LYD" → LYD-12)
- extraobject
- removestring[]
Default
[]
change_database_views
Change a database's views. Adds, changes and removes views in one step. config is merged into the view's config (filter, sorts, groupBy, columns, …); see get_database for the current values.
- addobject[]
Default
[]Show 3 fieldsHide fields
One of
tableboardlistcalendargallery- configViewConfigPatchInput
Show 9 fieldsHide fields
- sortsobject[]
Show 2 fieldsHide fields
- directionstring
One of
ascdescDefault
"asc"
Show 6 fieldsHide fields
- directionstring
One of
ascdescDefault
"asc" - orderstring[]
- hideEmptyboolean
Hide groups with no rows (board columns).
- dateBucketstring
Date grouping; default month.
One of
dayweekmonthyear - collapsedstring[]
Board swimlanes.
Show 6 fieldsHide fields
- directionstring
One of
ascdescDefault
"asc" - orderstring[]
- hideEmptyboolean
Hide groups with no rows (board columns).
- dateBucketstring
Date grouping; default month.
One of
dayweekmonthyear - collapsedstring[]
- columnsViewColumnInput[]
Show 3 fieldsHide fields
- visibleboolean
Default
true
- summariesobject
propertyId → summary name
- layoutViewLayoutInput
Show 11 fieldsHide fields
- rowHeightstring
table
One of
shortmediumtallextra - wrapCellsboolean
table
board, gallery: px
board, gallery: the card image
- coverFitstring
One of
covercontain - markersstring
list
One of
bulletnumbernone calendar: the date property placing rows
- calendarModestring
One of
monthweek - showWeekendsboolean
- colorColumnsboolean
board
- extraobject
- updateobject[]
Default
[]Show 4 fieldsHide fields
A view's id or name (case-insensitive).
- typestring
One of
tableboardlistcalendargallery - configViewConfigPatchInput
Show 9 fieldsHide fields
- sortsobject[]
Show 2 fieldsHide fields
- directionstring
One of
ascdescDefault
"asc"
Show 6 fieldsHide fields
- directionstring
One of
ascdescDefault
"asc" - orderstring[]
- hideEmptyboolean
Hide groups with no rows (board columns).
- dateBucketstring
Date grouping; default month.
One of
dayweekmonthyear - collapsedstring[]
Board swimlanes.
Show 6 fieldsHide fields
- directionstring
One of
ascdescDefault
"asc" - orderstring[]
- hideEmptyboolean
Hide groups with no rows (board columns).
- dateBucketstring
Date grouping; default month.
One of
dayweekmonthyear - collapsedstring[]
- columnsViewColumnInput[]
Show 3 fieldsHide fields
- visibleboolean
Default
true
- summariesobject
propertyId → summary name
- layoutViewLayoutInput
Show 11 fieldsHide fields
- rowHeightstring
table
One of
shortmediumtallextra - wrapCellsboolean
table
board, gallery: px
board, gallery: the card image
- coverFitstring
One of
covercontain - markersstring
list
One of
bulletnumbernone calendar: the date property placing rows
- calendarModestring
One of
monthweek - showWeekendsboolean
- colorColumnsboolean
board
- extraobject
- removestring[]
Default
[]
run_operation
Runs any Lydie operation by id with its input, including these not listed as tools: database.update: Update database settings; database.delete: Turn a database back into a page; database.restore: Restore a database; database.setDefinition: Replace a database's schema and views; database.listTemplates: List row templates; database.addProperty: Add a database property; database.renameProperty: Rename a database property; database.updateProperty: Update a database property; database.changePropertyType: Change a property's type; database.moveProperty: Reorder a database property; database.deleteProperty: Delete a database property; database.restoreProperty: Restore a database property; database.addOption: Add a select option; database.updateOption: Rename or recolour a select option; database.moveOption: Reorder a select option; database.deleteOption: Delete a select option; database.createView: Create a database view; database.renameView: Rename a database view; database.duplicateView: Duplicate a database view; database.moveView: Reorder a database view; database.updateView: Update a database view; database.deleteView: Delete a database view; database.restoreView: Restore a database view; database.createRow: Create a database row; database.setValues: Set row values; database.moveRow: Move a database row; database.duplicateRows: Duplicate database rows; database.deleteRows: Delete database rows; database.restoreRows: Restore database rows. Get an operation's input schema with describe_operation.
Operation id, e.g. doc.move.
One of
doc.createdoc.renamedoc.movedoc.deletedoc.restoredoc.purgedoc.setPropertiesdoc.updateBodydoc.getdoc.listTreedoc.listChildrendoc.searchdoc.backlinksdoc.blockBacklinksdoc.outgoingLinksdoc.unlinkedMentionsdoc.unresolvedLinkstrash.listtrash.emptyattachment.createattachment.deleteattachment.restoreattachment.purgeattachment.getattachment.listhistory.listSessionshistory.listBySessionhistory.undoSessiondatabase.createdatabase.updatedatabase.deletedatabase.restoredatabase.setDefinitiondatabase.getdatabase.listTemplatesdatabase.listdatabase.querydatabase.addPropertydatabase.renamePropertydatabase.updatePropertydatabase.changePropertyTypedatabase.movePropertydatabase.deletePropertydatabase.restorePropertydatabase.addOptiondatabase.updateOptiondatabase.moveOptiondatabase.deleteOptiondatabase.createViewdatabase.renameViewdatabase.duplicateViewdatabase.moveViewdatabase.updateViewdatabase.deleteViewdatabase.restoreViewdatabase.createRowdatabase.setValuesdatabase.moveRowdatabase.duplicateRowsdatabase.deleteRowsdatabase.restoreRowsdatabase.writeRowsdatabase.changeSchemadatabase.changeViewsThe operation's input.
describe_operation
Returns an operation's description and input and output JSON Schemas, for run_operation.
Operation id, e.g. doc.move.
One of
doc.createdoc.renamedoc.movedoc.deletedoc.restoredoc.purgedoc.setPropertiesdoc.updateBodydoc.getdoc.listTreedoc.listChildrendoc.searchdoc.backlinksdoc.blockBacklinksdoc.outgoingLinksdoc.unlinkedMentionsdoc.unresolvedLinkstrash.listtrash.emptyattachment.createattachment.deleteattachment.restoreattachment.purgeattachment.getattachment.listhistory.listSessionshistory.listBySessionhistory.undoSessiondatabase.createdatabase.updatedatabase.deletedatabase.restoredatabase.setDefinitiondatabase.getdatabase.listTemplatesdatabase.listdatabase.querydatabase.addPropertydatabase.renamePropertydatabase.updatePropertydatabase.changePropertyTypedatabase.movePropertydatabase.deletePropertydatabase.restorePropertydatabase.addOptiondatabase.updateOptiondatabase.moveOptiondatabase.deleteOptiondatabase.createViewdatabase.renameViewdatabase.duplicateViewdatabase.moveViewdatabase.updateViewdatabase.deleteViewdatabase.restoreViewdatabase.createRowdatabase.setValuesdatabase.moveRowdatabase.duplicateRowsdatabase.deleteRowsdatabase.restoreRowsdatabase.writeRowsdatabase.changeSchemadatabase.changeViews