n8n_create_tag
Create a new tag to organize and categorize workflows in n8n for better management and retrieval.
Instructions
Create a new tag for organizing workflows.
Args:
name (string): Tag name (max 24 characters)
Returns: The created tag.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Tag name (max 24 characters) |
Implementation Reference
- src/tools/tags.ts:116-124 (handler)The handler logic that executes the 'n8n_create_tag' tool.
async (params: z.infer<typeof CreateTagSchema>) => { const tag = await post<N8nTag>('/tags', params); return { content: [{ type: 'text', text: `✅ Tag created!\n\n${formatTag(tag)}` }], structuredContent: tag }; } ); - src/tools/tags.ts:97-124 (registration)The registration block for the 'n8n_create_tag' tool.
server.registerTool( 'n8n_create_tag', { title: 'Create n8n Tag', description: `Create a new tag for organizing workflows. Args: - name (string): Tag name (max 24 characters) Returns: The created tag.`, inputSchema: CreateTagSchema, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } }, async (params: z.infer<typeof CreateTagSchema>) => { const tag = await post<N8nTag>('/tags', params); return { content: [{ type: 'text', text: `✅ Tag created!\n\n${formatTag(tag)}` }], structuredContent: tag }; } );