Usage Examples
CLI Workflows
Section titled “CLI Workflows”Find and read a page
Section titled “Find and read a page”# Search for pages about deploymentctk search "type=page AND title~'deployment'"
# Get the full content of a resultctk pages get 12345678
# Check version historyctk pages versions 12345678Navigate a space
Section titled “Navigate a space”# List all spacesctk spaces list
# Get a specific spacectk spaces get DEV
# List pages in the spacectk pages list 131073
# List folders in the spacectk folders list 131073
# Get child foldersctk folders children 87654321Compare page versions
Section titled “Compare page versions”# See what changed between v3 and v5ctk pages diff 12345678 --from 3 --to 5Create and update pages
Section titled “Create and update pages”# Create a pagectk pages create -s 131073 -t "Sprint Retrospective" \ -b "<h1>Sprint 42</h1><p>What went well...</p>"
# Update a pagectk pages update 12345678 -t "Sprint Retrospective (Updated)" \ -b "<h1>Sprint 42</h1><p>Updated content...</p>"Pipe JSON to jq
Section titled “Pipe JSON to jq”# Get page IDs from a spacectk pages list 131073 --json | jq '.[].id'
# Search and extract titlesctk search "space=DEV AND type=page" --json | jq '.results[].title'MCP Conversation Examples
Section titled “MCP Conversation Examples”Research a topic
Section titled “Research a topic”You: What do our Confluence docs say about the authentication flow?
Agent: Let me search for authentication-related pages.
(calls
manage_searchwith{"action": "cql", "cql": "type=page AND title~'auth'"})I found 4 pages. Let me read the most relevant one.
(calls
manage_pageswith{"action": "get", "page_id": "12345678"})Here’s what the docs say about the authentication flow…
Audit recent changes
Section titled “Audit recent changes”You: What pages were changed this week in the DEV space?
Agent: (calls
manage_searchwith{"action": "cql", "cql": "type=page AND space=DEV AND lastModified >= startOfWeek()"})3 pages were modified this week. Let me check what changed in each.
(calls
manage_pageswith{"action": "list_versions", "page_id": "..."}for each)(calls
manage_pageswith{"action": "diff", ...}for the one with multiple new versions)
Organize content
Section titled “Organize content”You: Move the old API docs into the Archive folder
Agent: Let me find the Archive folder first.
(calls
manage_folderswith{"action": "list", "space_id": "131073"})Found it. Now let me find the old API docs.
(calls
manage_searchwith{"action": "cql", "cql": "type=page AND title~'API' AND space=DEV AND label='deprecated'"})(calls
manage_pageswith{"action": "move", ...}for each page)