Skip to main content

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​

Workspaces, channels and posts​

ToolPermissionWhat it does
list_workspacesRead onlyLists the workspaces you belong to, your role, the time zone and which workspaces allow agents. The agent should call this first.
list_channelsRead onlyLists the usable channels in a workspace, with supported post formats, first comment, extra options and media rules for each.
list_postsRead onlyFinds posts by status, channel or scheduled time range (in the workspace time zone).
get_postRead onlyShows one post in full: content, media, status on each channel, the published link and any error.
create_postRead and draftCreates a post on one or more channels. Publishing right away needs Read, draft and publish.
update_postRead and draftEdits a post that hasn't started publishing. Publishing right away needs Read, draft and publish.
delete_postRead and draftDeletes a post permanently. Content already published stays on the platform. Fails while the post is publishing.
import_media_from_urlRead and draftImports an image or video from a public link (http or https) into the media library. The import runs in the background.
get_media_importRead and draftShows the progress of a media import: queued, downloading, done or failed.
create_media_uploadRead and draftUploads 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_mediaRead and draftShows 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:

ModeMeaning
draftSave as a draft
scheduleSchedule for a specific time, in the workspace time zone
queueAdd to the next free queue slot. See Queue.
nowPublish immediately. Needs Read, draft and publish.
tip

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​

  1. The agent puts the file in the media library: import_media_from_url for a file with a public link, create_media_upload for a file on your machine.
  2. The agent calls get_media_import or get_media until the media is ready.
  3. The agent passes the media_id in media_ids of create_post or update_post, up to 20 items, in display order. Long-form articles for WordPress and Custom API channels place images in the content by media_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.

ToolPermissionWhat it does
get_channel_insightsRead onlyShows the 0–100 channel score, its components, daily data and top posts over 30 days. See Channel score.
list_competitorsRead onlyLists tracked competitors and their key numbers.
get_competitor_postsRead onlyShows up to 25 recent posts from a competitor, with growth and hot post labels.
get_trendsRead onlyShows hot posts and the latest items from the trend sources the workspace follows.

Second Brain​

ToolPermissionWhat it does
get_brain_indexRead onlyShows the index of the workspace's knowledge pages.
search_brainRead onlySearches knowledge pages by keyword.
get_brain_pageRead onlyReads the full text of a knowledge page.
upsert_brain_pageRead and draftCreates 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.

note

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.

Next steps​