Content & Files · Developer Tools

Eraser MCP

Eraser MCP lets agents generate, create, read, search, update, export, and organize technical diagrams and documents in an Eraser workspace.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Export diagram

    Render a canvas diagram to PNG or JPEG and return a temporary image URL. Tell the user to download it from the returned imageUrl. Set format: "drawio" instead to export an editable draw.io (diagrams.net) document — that returns fileUrl rather than imageUrl; download it and save it with a .drawio extension. draw.io export requires a paid plan; on a free team it returns an upgrade error, so fall back to png/jpeg.

  • Export document

    Export a file's markdown document body as a downloadable artifact.

  • Export file

    Returns the Eraser file URL for PDF export. NOTE: programmatic PDF export is not yet available via MCP — this returns a link for the user to export from the Eraser app's export menu, not a downloadable PDF. For a diagram image, use export_diagram; for the document body as markdown, use export_document.

  • Get diagram

    Fetch a diagram's metadata and DSL/JSON code. For freeform diagrams, set includeFreeformDefinition: true to get the full scene structure (elements, connections, titles). Need a PNG image of the diagram? Use export_diagram instead.

  • Get document

    Fetch the full markdown body of a file's document.

  • Get file

    Fetch a file's metadata, document outline (headers), and the list of diagrams in it.

  • Get folder

    Fetch a folder by id.

  • Get me

    Fetch the current user, active team, and team memberships.

  • Get preset

    Fetch a preset including its rules, templates, and references.

  • Get template or reference

    Fetch a template/reference's metadata, document outline, and diagram list.

  • List diagrams

    List the diagrams contained in a file.

  • List files

    List files in the team workspace, optionally scoped to a folder.

  • List folders

    List folders. Pass `parentFolderId` to scope to direct children of a folder (or `null` for top-level only). Pass `nameContains` to resolve a folder the user names by string (e.g. 'the Engineering folder') without paging through the entire tree. Combining the two narrows further (e.g. top-level folders containing 'eng').

  • List presets

    List the team's presets. Pass `nameContains` to resolve a preset the user names by string (e.g. 'the Marketing preset') without scanning the full list — much cheaper in context tokens.

  • List teams

    List the teams the current user belongs to (OAuth only).

  • Search

    Full-text and semantic search across files or diagrams. Omit 'kind' for content search (finds matching blocks). Use kind: 'file' only to look up a file by name (no block content returned). Use kind: 'diagram' to search within diagram code/titles.