Add or remove template or referenceAttach or detach an EXISTING file as a template (style anchor) or reference (terminology/concept anchor) of a preset.
Create diagramPREFERRED for creating a diagram from a natural-language prompt — Eraser's AI picks the diagram type, generates the DSL, and renders it.
Create documentPREFERRED for populating a document from a natural-language prompt — Eraser's AI generates the markdown.
Create fileCreate an empty file, or duplicate an existing file when sourceFileId is provided.
Create folderCreate a new folder.
Create presetCreate a new preset (the team-level container for AI styling: templates, references, and rules).
Create template or referenceCreate a new template (style anchor) or reference (terminology/concept anchor) file and, when `presetId` is provided, attach it to that preset in a single call.
Delete diagramDelete a diagram from a file.
Delete documentClear a file's document body to an empty markdown document.
Delete fileArchive a file.
Delete folderDelete a folder.
Delete presetDelete a preset.
Export diagramRender a canvas diagram to PNG or JPEG and return a temporary image URL.
Export documentExport a file's markdown document body as a downloadable artifact.
Export fileReturns the Eraser file URL for PDF export.
Get diagramFetch a diagram's metadata and DSL/JSON code.
Get documentFetch the full markdown body of a file's document.
Get fileFetch a file's metadata, document outline (headers), and the list of diagrams in it.
Get folderFetch a folder by id.
Get meFetch the current user, active team, and team memberships.
Get presetFetch a preset including its rules, templates, and references.
Get template or referenceFetch a template/reference's metadata, document outline, and diagram list.
List diagramsList the diagrams contained in a file.
List filesList files in the team workspace, optionally scoped to a folder.
List foldersList folders.
List presetsList the team's presets.
List teamsList the teams the current user belongs to (OAuth only).
Manually create diagramADVANCED — most callers should use create_diagram instead.
Manually create documentADVANCED — most callers should use create_document instead.
Manually update diagramADVANCED — most callers should use update_diagram instead.
Manually update documentADVANCED — most callers should use update_document instead.
Manually update fileReplace a file's document markdown and/or diagram code in one call.
Publish template or referencePublish a new version of a template/reference file.
SearchFull-text and semantic search across files or diagrams.
Select teamSet the active team for the session when the user belongs to multiple teams (OAuth only).
Update diagramUSE THIS for any user request that describes the change in natural language — verbs like 'add', 'remove', 'change', 'rename', 'recolor', 'make it more X', etc.
Update documentUSE THIS for any user request that describes the change in natural language — verbs like 'add a section', 'rewrite the intro', 'fix the typo', 'remove the deprecated paragraph', etc.
Update fileUpdate file metadata (title, folder, sharing).
Update folderRename or move a folder, or bulk-apply a link-sharing setting to every file inside it (recursively).
Update presetRename a preset or update its metadata (`name`, `description`, `isDefault`).
Update rulesAdd, update, or remove rules on a preset in a single batched call.
Update template or referenceRename a template or reference file.