Publish, create, and update Confluence pages from HTML content.
Publish, create, and update Confluence pages from HTML content.
This skill upserts Confluence pages through the Confluence REST API:
It supports credentials from config, env file, or process environment variables.
publish_pageCreate or update a Confluence page.
Expected input:
input: HTML content, optionally with metadata JSON in the first HTML comment.config: runtime options and credentials.Metadata comment format:
<!--
{"space_key":"SPACE","page_title":"My Page","parent_page_id":"12345"}
-->
<h1>Body content</h1>
Alternative config keys:
space_keypage_titleparent_page_id (optional)body_htmlpage_path (path to a file in the current workspace containing metadata comment + body)Credential options:
config.credentials.EMAIL, config.credentials.DOMAIN, config.credentials.API_TOKENconfig.env_file pointing to a .env style file in the current workspaceEMAIL, DOMAIN, API_TOKENSecurity constraints:
config.env_file and config.page_path must resolve to files under the current workspace directory.DOMAIN and optional base_url must target Atlassian Cloud (https://<tenant>.atlassian.net/wiki).Success output includes:
status: "success"operation: "created" | "updated"page_idtitleurlspace_keytest_connectionChecks Confluence authentication and returns user identity info.
{
"action": "publish_page",
"input": "<!-- {\"space_key\":\"SPACE\",\"page_title\":\"Demo\"} --><h1>Hello</h1>",
"config": {
"credentials": {
"EMAIL": "[email protected]",
"DOMAIN": "exampletenant",
"API_TOKEN": "your-token"
}
}
}