> This page is for Agent Handler.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.merge.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.merge.dev/_mcp/server.

# Lucidchart

**Authentication:** OAuth or API key. See [Magic Link](/merge-agent-handler/features/magic-link) for the runtime auth flow, or [Application credentials](/merge-agent-handler/admin-setup/add-oauth-credentials) to bring your own OAuth app.

## Sample use cases

* List documents in the `Architecture` folder modified in the last 7 days.
* Generate a sequence diagram from this flow description and save it under `Engineering / Diagrams`.
* Find documents shared externally in the last 30 days for security review.

## Available Tools

#### get\_document\_user\_collaborator

Get a specific user's collaboration details on a document, including their role.

#### remove\_document\_user\_collaborator

Remove a user's access to a document. This revokes all their permissions on the document.

#### list\_document\_user\_collaborators

List all user collaborators on a document with their roles. Supports pagination via cursor.

#### get\_folder\_user\_collaborator

Get a specific user's collaboration details on a folder, including their role.

#### remove\_folder\_user\_collaborator

Remove a user's access to a folder. This revokes all their permissions on the folder.

#### list\_folder\_user\_collaborators

List all user collaborators on a folder with their roles. Supports pagination via cursor.

#### create\_document

Create a new Lucid document. Specify the product type (lucidchart, lucidspark, or lucidscale) and optional parent...

#### get\_document

Get a document by its UUID. Returns document metadata including title, URLs, version, page count, and owner info.

#### get\_document\_contents

Get the full contents of a document including all pages, shapes, lines, and groups. Useful for reading diagram content.

#### search\_documents

Search for documents by product type, keywords, creation date, or last modified date. Supports pagination via cursor.

#### trash\_document

Move a document to the trash by its UUID. The document can be restored by an admin.

#### export\_document

Export a document page as a PNG or JPEG image. Returns base64-encoded image data. Optionally specify page, crop area...

#### create\_folder

Create a new folder in Lucid. Specify the folder name, type (folder or team), and optional parent folder ID.

#### get\_folder

Get a folder by its ID. Returns folder metadata including name, type, parent, and creation date.

#### update\_folder

Update a folder's name or parent. Provide the folder ID and the fields to update.

#### trash\_folder

Move a folder to the trash by its ID. The folder can be restored later.

#### restore\_folder

Restore a folder from trash by its ID.

#### search\_folders

Search for folders by type and keywords. Supports pagination via cursor. Use cursor from page\_info for next page.

#### list\_folder\_contents

List the contents of a folder (documents, subfolders). Supports pagination via cursor.

#### list\_root\_folder\_contents

List the contents of the root folder. Returns documents and folders at the top level. Supports pagination.

#### create\_document\_share\_link

Create a share link for a document. Specify the role (editandshare, edit, comment, view) and optional security settings.

#### get\_document\_share\_link

Get a specific share link for a document by its link ID.

#### update\_document\_share\_link

Update a document share link's role or security settings.

#### delete\_document\_share\_link

Delete a share link from a document, revoking access for anyone who has it.

#### create\_folder\_share\_link

Create a share link for a folder. Specify the role (editandshare, edit, comment, view) and optional security settings.

#### get\_folder\_share\_link

Get a specific share link for a folder by its link ID.

#### update\_folder\_share\_link

Update a folder share link's role or security settings.

#### delete\_folder\_share\_link

Delete a share link from a folder, revoking access for anyone who has it.

#### get\_current\_user

Get the profile of the currently authenticated user, including account ID, username, email, and full name.