agentdocs-mcp
v0.11.0AgentDocs (agentdocs.eu) MCP: read, search, write, comment, share & attach images to Markdown docs.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
whoami Who am I
Identify the authenticated AgentDocs user and credential scope. Call this first: a space-scoped credential is locked to a single space, which becomes the default for page tools.
list_workspaces List workspaces
List all AgentDocs workspaces the user can access. Workspaces contain spaces; spaces contain pages.
list_spaces List spaces
List the spaces in a workspace.
| Parameter | Type | Description |
|---|---|---|
workspace * | string | Workspace UUID or workspace slug (e.g. "my-team-docs") |
search_docs Search docs
Full-text (keyword) search across the pages in a workspace, or in one of its spaces. Matches in the returned content_preview are delimited with << >> markers. For natural-language questions, prefer semantic_search.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search terms |
workspace * | string | Workspace UUID or workspace slug |
space | string | Only search this space of the workspace: space UUID or "workspaceSlug/spaceSlug" path. Leave out to search every space you can read. |
semantic_search Semantic search
Search a workspace by meaning, not keywords — ask a natural-language question (e.g. "how do we handle billing retries?") and get the most relevant pages ranked by similarity. Pages are embedded automatically after each save. Requires a Pro workspace; the response 'mode' is "semantic" when active, or "fulltext_fallback" if semantic search is not configured on the instance (results are still returned).
| Parameter | Type | Description |
|---|---|---|
query * | string | A natural-language question or description (max 1000 chars) |
workspace * | string | Workspace UUID or workspace slug |
space | string | Only search this space of the workspace: space UUID or "workspaceSlug/spaceSlug" path. Leave out to search every space you can read. |
list_pages List pages
List the pages in a space as a tree (content omitted — use get_page to read a page). Pages with a discussion carry comment_count / unresolved_comment_count / last_comment_at — comments do NOT bump a page's updated_at, so check last_comment_at to spot new replies. With a space-scoped token, omit "space" to use the token's space.
| Parameter | Type | Description |
|---|---|---|
space | string | Space UUID or "workspaceSlug/spaceSlug" path. Optional for space-scoped tokens. |
get_page Get page
Read a page including its full Markdown content and current version number. The page carries comment_count / unresolved_comment_count / last_comment_at — if comment_count > 0 there is a discussion; set include_comments to read it. include_children returns the page's child pages (titles + slugs, no content) — useful for 'folder' pages whose own content is empty but which organise sub-pages. include_images returns any images embedded in the page as viewable image blocks, so you can actually SEE a screenshot the page references instead of only its URL.
| Parameter | Type | Description |
|---|---|---|
page * | string | Page UUID or "workspaceSlug/spaceSlug/pageSlug" path |
include_children | boolean | When true, also return the page's immediate child pages (id, title, slug — no content). |
include_comments | boolean | When true, also return the page's comments (threaded) alongside the page. |
include_images | boolean | When true, also return images embedded in the page as image blocks you can view (max 5). Off by default — images are large, so ordinary reads stay cheap. |
create_page Create page
Create a Markdown page in a space. The slug is derived from the title unless given. With a space-scoped token, omit "space" to use the token's space.
| Parameter | Type | Description |
|---|---|---|
content * | string | Markdown content |
title * | string | Page title |
parent_page_id | string | Parent page UUID, to nest this page under another |
slug | string | Explicit URL slug (auto-generated and deduped when omitted) |
space | string | Space UUID or "workspaceSlug/spaceSlug" path. Optional for space-scoped tokens. |
update_page Update page
Update a page's title and/or content. Earlier text stays in the page history (list_page_versions) and can be brought back with restore_page_version. Pass expected_version to fail instead of overwriting concurrent edits.
| Parameter | Type | Description |
|---|---|---|
page * | string | Page UUID or "workspaceSlug/spaceSlug/pageSlug" path |
content | string | New full Markdown content (replaces existing content) |
expected_version | integer | If set and the page has moved past this version, the update is rejected |
title | string | New title |
append_to_page Append to page
Append Markdown to the end of an existing page (read-modify-write; creates a new version). Ideal for logs, reports, and running notes.
| Parameter | Type | Description |
|---|---|---|
content * | string | Markdown to append |
page * | string | Page UUID or "workspaceSlug/spaceSlug/pageSlug" path |
separator | string | Separator inserted before the appended text (default: blank line "\n\n") |
delete_page Delete page
Delete a page and all its child pages by moving them to the trash. They can be brought back with restore_page (find the id with list_trash) until the trash retention period ends, after which they are deleted for good.
| Parameter | Type | Description |
|---|---|---|
page * | string | Page UUID or "workspaceSlug/spaceSlug/pageSlug" path |
move_page Move page
Move a page, with its child pages, under another page or to the top level of its space. Give parent_page to nest it, or top_level: true to put it at the top. To move it into another space of the same workspace, also give space; the new parent must then be in that space (or use top_level). Space-scoped tokens can only move pages within their own space.
| Parameter | Type | Description |
|---|---|---|
page * | string | Page UUID or "workspaceSlug/spaceSlug/pageSlug" path of the page to move |
parent_page | string | New parent page: UUID or "workspaceSlug/spaceSlug/pageSlug" path. Leave out with top_level: true. |
space | string | Destination space, only when moving to another space: UUID or "workspaceSlug/spaceSlug" path. Same workspace only. |
top_level | boolean | When true, move the page to the top level of its space (no parent). Don't combine with parent_page. |
import_markdown Import a markdown folder
Import a folder of Markdown files and let the folder structure become the page hierarchy. Each file is { path, content } where path is a relative file path like "guides/setup.md". Folders become parent pages; an index.md or README.md inside a folder supplies that folder page's content; titles come from the first # H1, falling back to the file name. Ideal for an Obsidian vault, a Notion markdown export, or a repo's docs/ folder. Up to 500 files per call. IDEMPOTENT: pages are matched by source path, so re-running an import — or chunking a large vault across several calls — reuses existing p…
| Parameter | Type | Description |
|---|---|---|
files * | array | The markdown files to import |
overwrite_existing | boolean | When true, re-importing updates the content of pages that already exist (re-sync). Default false: existing pages are left untouched. |
parent_page | string | Optional existing page to nest the import under (UUID or "workspaceSlug/spaceSlug/pageSlug" path). Defaults to the space root. |
space | string | Space UUID or "workspaceSlug/spaceSlug" path. Optional for space-scoped tokens. |
bulk_create_pages Bulk create pages
Create up to 500 pages in one atomic call (all succeed or all fail) with an explicitly specified structure (titles, slugs, parent_page_id). To import a folder of Markdown files and derive the hierarchy from file paths, use import_markdown instead. With a space-scoped token, omit "space" to use the token's space.
| Parameter | Type | Description |
|---|---|---|
pages * | array | Pages to create |
space | string | Space UUID or "workspaceSlug/spaceSlug" path. Optional for space-scoped tokens. |
list_comments List comments
List the threaded comments on a page, returning each comment's id, content, author and parent. Use this to find a comment's id before update_comment / delete_comment. (get_page with include_comments returns the same thread alongside the page content.)
| Parameter | Type | Description |
|---|---|---|
page * | string | Page UUID or "workspaceSlug/spaceSlug/pageSlug" path |
add_comment Add comment
Post a comment on a page. Set parent_comment_id to reply within an existing thread. The returned 'mentions' array echoes @name tokens parsed from the body — it is informational only; posting a comment does NOT currently notify the mentioned user.
| Parameter | Type | Description |
|---|---|---|
content * | string | Comment body (Markdown) |
page * | string | Page UUID or "workspaceSlug/spaceSlug/pageSlug" path |
parent_comment_id | string | UUID of the comment being replied to, to thread under it (omit for a top-level comment) |
update_comment Update comment
Edit a comment's body and/or mark its thread resolved. Only the comment's author (or an admin) may update it. Provide at least one of content / resolved.
| Parameter | Type | Description |
|---|---|---|
comment * | string | Comment UUID (from get_page include_comments or list_comments) |
content | string | New comment body (replaces the existing text) |
resolved | boolean | Mark the comment thread resolved (true) or reopen it (false) |
delete_comment Delete comment
Permanently delete a comment. Only the comment's author (or an admin) may delete it. There is no undo via the API.
| Parameter | Type | Description |
|---|---|---|
comment * | string | Comment UUID (from get_page include_comments or list_comments) |
upload_image Upload image
Attach an image to a space and get back the Markdown to embed it in a page. Use this to put screenshots and diagrams into the pages you write, so whoever reads the page later — human or agent — can see what you saw. ACCEPTS: PNG, JPEG, GIF, WebP. Max 5 MB. SVG is rejected (script-injection vector). The format is detected from the file's own bytes, not its name. HOW TO SUPPLY THE IMAGE — give exactly one of: • path — absolute path to an image file on this machine. Prefer this: the bytes never pass through the conversation. • data — base64 of the file's bytes (a "data:image/png…
| Parameter | Type | Description |
|---|---|---|
alt_text | string | Alt text for the returned Markdown snippet. |
data | string | Base64 of the image FILE'S BYTES (a "data:image/png;base64,..." URI is accepted too). Not a description of the image, and not something you can produce from an image you only viewed. |
filename | string | Original filename to record (cosmetic; defaults to image.<ext>). |
path | string | Absolute path to an image file on this machine. Best option — the bytes never enter the conversation. |
source_url | string | Public http(s) URL the server fetches the image from. Must be publicly reachable — private/loopback addresses are refused. |
space | string | Space UUID or "workspaceSlug/spaceSlug" path. Optional for space-scoped tokens. |
list_page_versions List page versions
List a page's saved versions, newest first: version number, date, author, which app made the edit (edited_via: web, api_token, space_token or oauth; token_name: the token or app name) and the text length. The text itself is left out; read one version with get_page_version. Several saves by the same author through the same app within 10 minutes share one entry, so version numbers can skip.
| Parameter | Type | Description |
|---|---|---|
page * | string | Page UUID or "workspaceSlug/spaceSlug/pageSlug" path |
limit | integer | How many of the newest versions to return (default 50, max 200). |
get_page_version Get page version
Read the full Markdown text of one earlier version of a page, with its author and which app made it. Find version numbers with list_page_versions. Page titles are not versioned, so only the text is returned.
| Parameter | Type | Description |
|---|---|---|
page * | string | Page UUID or "workspaceSlug/spaceSlug/pageSlug" path |
version * | integer | Version number, from list_page_versions |
restore_page_version Restore page version
Replace a page's text with the text of an earlier version. The restore is saved as a new version, and the text it replaces stays in the history as its own version, so nothing is lost and a restore can itself be undone. Only the text is restored; the title stays as it is.
| Parameter | Type | Description |
|---|---|---|
page * | string | Page UUID or "workspaceSlug/spaceSlug/pageSlug" path |
version * | integer | Version number to restore, from list_page_versions |
list_trash List trash
List the deleted pages in a space that can still be restored, most recently deleted first. Each entry is a page that was deleted directly; descendant_count says how many of its child pages went with it and come back with it. Pages stay in the trash for retention_days, then they are deleted for good. Restore one with restore_page and its id. With a space-scoped token, omit "space" to use the token's space.
| Parameter | Type | Description |
|---|---|---|
space | string | Space UUID or "workspaceSlug/spaceSlug" path. Optional for space-scoped tokens. |
restore_page Restore page
Bring a deleted page back from the trash, with the child pages that were deleted with it. Takes the page's UUID from list_trash: deleted pages can't be found by their path. If the slug was taken meanwhile the page gets a new one (slug_changed), and if its parent page is still deleted it comes back at the top level of its space (reparented_to_root).
| Parameter | Type | Description |
|---|---|---|
page_id * | string | UUID of the deleted page, from list_trash |