> ## Documentation Index
> Fetch the complete documentation index at: https://ekso.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Doc

> MCP tools for managing document folders, documents, and document content.

## get\_doc\_folder\_list

Get all document folders visible to the current user.

| Property      |     |
| ------------- | --- |
| **Read-only** | Yes |

### Parameters

None.

### Returns

A list of `DataDocFolder` objects with folder details including ID, name, color, and access restrictions.

***

## get\_doc\_folder

Get a document folder by its identifier.

| Property      |     |
| ------------- | --- |
| **Read-only** | Yes |

### Parameters

| Parameter  | Type   | Required | Description                                                       |
| ---------- | ------ | -------- | ----------------------------------------------------------------- |
| `folderId` | string | Yes      | The folder ID. Use [`get_doc_folder_list`](#get_doc_folder_list). |

### Returns

A `DataDocFolder` with folder details.

***

## create\_doc\_folder

Create a new document folder.

| Property      |    |
| ------------- | -- |
| **Read-only** | No |

### Parameters

| Parameter      | Type      | Required | Default | Description                                                                                                    |
| -------------- | --------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------- |
| `name`         | string    | Yes      | —       | Folder name.                                                                                                   |
| `color`        | string    | No       | `Slate` | Folder color.                                                                                                  |
| `restrictedTo` | string\[] | No       | `[]`    | User group IDs for access restriction. Use [`get_user_group_list`](/mcp-tools/user-group#get_user_group_list). |

### Returns

The created `DataDocFolder`.

***

## update\_doc\_folder

Update a document folder: name, color, access restrictions, archived status.

| Property      |    |
| ------------- | -- |
| **Read-only** | No |

### Parameters

| Parameter      | Type      | Required | Description                                                                                            |
| -------------- | --------- | -------- | ------------------------------------------------------------------------------------------------------ |
| `folderId`     | string    | Yes      | The folder ID. Use [`get_doc_folder_list`](#get_doc_folder_list).                                      |
| `name`         | string    | No       | New folder name.                                                                                       |
| `color`        | string    | No       | New folder color.                                                                                      |
| `restrictedTo` | string\[] | No       | New access restriction groups. Use [`get_user_group_list`](/mcp-tools/user-group#get_user_group_list). |
| `archived`     | bool      | No       | Archive or unarchive the folder.                                                                       |

### Returns

A confirmation message.

***

## delete\_doc\_folder

Delete a document folder.

| Property      |    |
| ------------- | -- |
| **Read-only** | No |

### Parameters

| Parameter  | Type   | Required | Description                                                       |
| ---------- | ------ | -------- | ----------------------------------------------------------------- |
| `folderId` | string | Yes      | The folder ID. Use [`get_doc_folder_list`](#get_doc_folder_list). |

### Returns

No content on success.

***

## get\_doc\_list

Get all documents in a specific folder, filtered by user permissions.

| Property      |     |
| ------------- | --- |
| **Read-only** | Yes |

### Parameters

| Parameter  | Type   | Required | Description                                                       |
| ---------- | ------ | -------- | ----------------------------------------------------------------- |
| `folderId` | string | Yes      | The folder ID. Use [`get_doc_folder_list`](#get_doc_folder_list). |

### Returns

A list of `DataDoc` objects with document details including ID, name, folder assignment, context links, and access restrictions.

***

## get\_doc

Get a document by its identifier.

| Property      |     |
| ------------- | --- |
| **Read-only** | Yes |

### Parameters

| Parameter | Type   | Required | Description                                           |
| --------- | ------ | -------- | ----------------------------------------------------- |
| `docId`   | string | Yes      | The document ID. Use [`get_doc_list`](#get_doc_list). |

### Returns

A `DataDoc` with document details.

***

## create\_doc

Create a new document in a folder.

| Property      |    |
| ------------- | -- |
| **Read-only** | No |

### Parameters

| Parameter      | Type      | Required | Default | Description                                                                          |
| -------------- | --------- | -------- | ------- | ------------------------------------------------------------------------------------ |
| `folderId`     | string    | Yes      | —       | Folder to create the document in. Use [`get_doc_folder_list`](#get_doc_folder_list). |
| `name`         | string    | Yes      | —       | Document name.                                                                       |
| `restrictedTo` | string\[] | No       | `[]`    | User group IDs for access restriction.                                               |
| `aiAccess`     | bool      | No       | `true`  | Whether AI agents can access this document.                                          |

### Returns

The created `DataDoc`.

***

## update\_doc

Update a document: name, context links, access restrictions, archived status.

| Property      |    |
| ------------- | -- |
| **Read-only** | No |

### Parameters

| Parameter      | Type      | Required | Description                                           |
| -------------- | --------- | -------- | ----------------------------------------------------- |
| `docId`        | string    | Yes      | The document ID. Use [`get_doc_list`](#get_doc_list). |
| `name`         | string    | No       | New document name.                                    |
| `restrictedTo` | string\[] | No       | New access restriction groups.                        |
| `archived`     | bool      | No       | Archive or unarchive the document.                    |

### Returns

A confirmation message.

***

## delete\_doc

Delete a document.

| Property      |    |
| ------------- | -- |
| **Read-only** | No |

### Parameters

| Parameter | Type   | Required | Description                                           |
| --------- | ------ | -------- | ----------------------------------------------------- |
| `docId`   | string | Yes      | The document ID. Use [`get_doc_list`](#get_doc_list). |

### Returns

No content on success.

***

## get\_doc\_content

Get the content body of a document.

| Property      |     |
| ------------- | --- |
| **Read-only** | Yes |

### Parameters

| Parameter | Type   | Required | Description                                           |
| --------- | ------ | -------- | ----------------------------------------------------- |
| `docId`   | string | Yes      | The document ID. Use [`get_doc_list`](#get_doc_list). |

### Returns

A `DataDocContent` object with the document's body content.

***

## update\_doc\_content

Update the content body of a document.

| Property      |    |
| ------------- | -- |
| **Read-only** | No |

### Parameters

| Parameter | Type   | Required | Description                                           |
| --------- | ------ | -------- | ----------------------------------------------------- |
| `docId`   | string | Yes      | The document ID. Use [`get_doc_list`](#get_doc_list). |
| `content` | string | Yes      | The updated document body text (Markdown).            |

### Returns

A confirmation message.
