Add Label
confluence_add_labelAdd labels to Confluence pages, blog posts, or attachments for categorization, status tracking, or filtering.
Instructions
Add label to Confluence content (pages, blog posts, or attachments).
Useful for:
Categorizing attachments (e.g., 'screenshot', 'diagram', 'legal-doc')
Tracking status (e.g., 'approved', 'needs-review', 'archived')
Filtering content by topic or version
Args: ctx: The FastMCP context. page_id: Content ID (page or attachment). name: Label name to add.
Returns: JSON string representing the updated list of label objects.
Raises: ValueError: If in read-only mode or Confluence client is unavailable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Label name to add (lowercase, no spaces). Examples: 'draft', 'reviewed', 'confidential', 'v1.0'. Labels help organize and categorize content. | |
| page_id | Yes | Confluence content ID to label. For pages/blogs: numeric ID (e.g., '123456789'). For attachments: ID with 'att' prefix (e.g., 'att123456789'). Use get_attachments to find attachment IDs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |