Tool reference
These are the tools an AI agent can call through the KDT Sharing MCP server. You usually don't call tools yourself: you describe what you want and the agent picks the right tools. This page helps you see what the agent can do and which permission the token needs.
Before you start
- Your agent is connected with your token. See Connect Claude Code, Codex, Cursor.
- The Permission column is the minimum token permission. See Tokens and permissions.
- Tool results are in English, including error messages. The agent explains them to you.
Workspaces, channels and posts
| Tool | Permission | What it does |
|---|---|---|
list_workspaces | Read only | Lists the workspaces you belong to, your role, the time zone and which workspaces allow agents. The agent should call this first. |
list_channels | Read only | Lists the usable channels in a workspace, with supported post formats, first comment, extra options and media rules for each. |
list_posts | Read only | Finds posts by status, channel or scheduled time range (in the workspace time zone). |
get_post | Read only | Shows one post in full: content, media, status on each channel, the published link and any error. |
create_post | Read and draft | Creates a post on one or more channels. Publishing right away needs Read, draft and publish. |
update_post | Read and draft | Edits a post that hasn't started publishing. Publishing right away needs Read, draft and publish. |
delete_post | Read and draft | Deletes a post permanently. Content already published stays on the platform. Fails while the post is publishing. |
import_media_from_url | Read and draft | Imports an image or video from a public link (http or https) into the media library. The import runs in the background. |
get_media_import | Read and draft | Shows the progress of a media import: queued, downloading, done or failed. |
create_media_upload | Read and draft | Uploads an image or video file from your machine into the media library. The agent sends the file in parts to the upload link the tool returns, so it needs an agent that can run shell commands (such as Claude Code). |
get_media | Read and draft | Shows the status of a media item: uploading, processing, ready or failed. Once ready it includes a link to open the file and a preview image. |
create_post and update_post have four modes:
| Mode | Meaning |
|---|---|
draft | Save as a draft |
schedule | Schedule for a specific time, in the workspace time zone |
queue | Add to the next free queue slot. See Queue. |
now | Publish immediately. Needs Read, draft and publish. |
The agent can send a unique ID (UUID) with each post it means to create. If it repeats the same call after a network error, KDT Sharing returns the post it already created instead of making a duplicate.
Attach media to a post
- The agent puts the file in the media library:
import_media_from_urlfor a file with a public link,create_media_uploadfor a file on your machine. - The agent calls
get_media_importorget_mediauntil the media is ready. - The agent passes the
media_idinmedia_idsofcreate_postorupdate_post, up to 20 items, in display order. Long-form articles for WordPress and Custom API channels place images in the content bymedia_id.
Ready media in tool results comes with a link to open the file and a link to a preview image, so the agent or you can check it before publishing.
Analytics, competitors and trends
| Tool | Permission | What it does |
|---|---|---|
get_channel_insights | Read only | Shows the 0–100 channel score, its components, daily data and top posts over 30 days. See Channel score. |
list_competitors | Read only | Lists tracked competitors and their key numbers. |
get_competitor_posts | Read only | Shows up to 25 recent posts from a competitor, with growth and hot post labels. |
get_trends | Read only | Shows hot posts and the latest items from the trend sources the workspace follows. |
Second Brain
| Tool | Permission | What it does |
|---|---|---|
get_brain_index | Read only | Shows the index of the workspace's knowledge pages. |
search_brain | Read only | Searches knowledge pages by keyword. |
get_brain_page | Read only | Reads the full text of a knowledge page. |
upsert_brain_page | Read and draft | Creates or edits a knowledge page. Your role must allow writing posts. Locked pages can't be changed. |
Brain tools only work when the workspace owner's plan includes Second Brain. They don't call any AI, so they don't use the workspace's AI tokens. See Second Brain.
If two people edit the same Brain page, a later write based on an older version is refused. The agent needs to read the page again and then write.