This is the reference for the tools an AI agent can use once it's connected (see Agents & Integrations). The Markdown they write is described in HAIMDALL's Markdown.
Available tools
createFolder: create a new top-level Folder. New Folders start open to every role.createArticle: create an article with one language variant, either at the root of a Folder or nested under a parent article. It starts empty, or pass optionalmarkdownto give it its first draft content in the same call — the same MarkdownupdateDrafttakes, checked the same way before the article is created, so a bad link or id never leaves an empty article behind. PassisTemplate: trueto create a reusable template instead of a standalone page — see Layouts & Reusable Templates.updateDraft: update a language variant's draft. Its content is written in Markdown and converted to HAIMDALL's rich-text format automatically. In the same call you can also change that language's title, description and search keywords, and the article's slug — every field is optional, so you can, for example, rename a translation without resending its content. The slug is shared by every language, so it's only accepted on the article's main language (en, else its first); it has the same uniqueness check as the editor's Edit details pop-up and goes live for every language at the article's next publish. Keywords are structured — see Search keywords below.searchArticles: look up articles by title, keyword, slug, description, or body text. Use it to find an article's id before linking to it with[[articleId|Display Text]]inupdateDraft, or switch tomode: "customer"to simulate what a customer would actually find in search. Each result'sisTemplateflag tells a reusable template apart from an ordinary article, and each language lists its keywords with their ids.
Agents can also read the haimdall://guide resource: a short guide to HAIMDALL's workflow, identity rules and Markdown, written for agents starting work. For the help site's look, read haimdall://appearance (the same text as getAppearanceGuide).
The three workflow tools are deliberately separate steps, and each one refuses to run unless the variant is at the right status (submitForReview only from draft, approveArticle only from in_review, publishArticle only from approved), so an agent can't skip review.
Search keywords
updateDraft's searchKeywords replaces the keywords of the language you're updating. Each entry is either a plain string (just the keyword) or an object:
{ "keyword": "invoice",
"territories": ["UK"],
"translations": { "fr": "facture", "de": "Rechnung" } }
{ "keyword": "MCP", "allLanguages": true }territorieslimits the keyword to customers in those territories (in every language). Codes must be territories configured on the Territories page.allLanguages: trueapplies the identical keyword to every language variant.translationswrites the keyword's equivalent into other languages' drafts, linked to it.id(fromsearchArticles/getArticleStatus) edits an existing keyword in place.
Keywords that exist only in other languages are left alone. Every language whose keywords change is saved as a draft edit (and goes back to draft if it was in review or approved). The old keyword@CODE text form is no longer accepted.
Same rules as people
The MCP tools follow exactly the same rules as people in the editor:
The agent's account role is checked against the target Folder's access controls (and any access the Folder grants that agent by name), and the action is attributed to the agent in the audit log, tagged AI, with the name of the key it used. Many tools still list
userandrolearguments; with an API key they're ignored, and the key's account is always used.updateTheme/getThemeStatusare checked against the theme's own (Folder-independent) permissions instead.Changing content, title, description, slug or keywords that are
in_revieworapprovedsends them back todraft— the same rule applies to the theme.An AI agent can only approve or publish when Agents may approve and publish is on (Access › Agents & integrations), with a role that holds approve permission on the Folder and a key with the Approve/Publish scopes, and content still has to pass through review and approval first, one step at a time. The theme works the same way:
updateThemechanges only the draft, andsubmitTheme,approveThemeandpublishThemetake it live step by step.deleteArticleneeds the same edit permission any other content change does — nothing special for deletion.restoreArticlebrings a deleted article back;purgeArticleremoves one permanently and is admin-only. See the People and Roles article for the full three-step delete/restore/purge lifecycle.Every agent is a real account. Folder access granted to an agent by name applies to it, just as for a person (see
Two Markdown features have no equivalent in HAIMDALL: strikethrough keeps the text without the line through it, and raw HTML is kept as literal text and never run.
Typical workflow
An AI agent drafts or updates articles — or theme branding — through the MCP server.
A human editor reviews the drafts in the editor (
/editor) and submits them for review — or the agent does so itself withsubmitForReview.An approver approves and publishes them, in the editor or through
approveArticleandpublishArticlewith a role that may approve and publish in that Folder.On publish, the content immediately appears in
/llms.txt,/api/export-kb, and/api/rag-chunks, and is compiled to static HTML; customer search picks it up a moment later. A theme publish has no static-recompile step — it only changes what any article compiles into on that article's own next publish.