create_tag
Generate and configure tags for content in Ghost CMS with customizable fields like name, slug, description, SEO metadata, and visibility settings.
Instructions
Create a new tag.
Args:
tag_data: Dictionary containing tag data with required fields:
- name: The name of the tag
Additional optional fields:
- slug: URL slug for the tag
- description: Description of the tag
- feature_image: URL to the tag's feature image
- visibility: Tag visibility ('public' or 'internal')
- accent_color: CSS color hex value for the tag
- meta_title: Meta title for SEO
- meta_description: Meta description for SEO
- canonical_url: The canonical URL
- og_image: Open Graph image URL
- og_title: Open Graph title
- og_description: Open Graph description
- twitter_image: Twitter card image URL
- twitter_title: Twitter card title
- twitter_description: Twitter card description
- codeinjection_head: Code to inject in header
- codeinjection_foot: Code to inject in footer
Example:
{
"name": "Technology",
"description": "Posts about technology",
"visibility": "public"
}
ctx: Optional context for logging
Returns:
Formatted string containing the created tag details
Raises:
GhostError: If there is an error accessing the Ghost API or invalid tag data
Input Schema
Name | Required | Description | Default |
---|---|---|---|
tag_data | Yes |