n8n_update_tag
Rename existing tags in n8n workflows by providing the tag ID and new name to maintain organized automation systems.
Instructions
Rename an existing tag.
Args:
id (string): Tag ID to update
name (string): New tag name (max 24 characters)
Returns: The updated tag.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Tag ID to update | |
| name | Yes | New tag name |
Implementation Reference
- src/tools/tags.ts:127-156 (handler)The handler implementation for the n8n_update_tag tool, which uses a PUT request to update an n8n tag by ID.
server.registerTool( 'n8n_update_tag', { title: 'Update n8n Tag', description: `Rename an existing tag. Args: - id (string): Tag ID to update - name (string): New tag name (max 24 characters) Returns: The updated tag.`, inputSchema: UpdateTagSchema, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: false } }, async (params: z.infer<typeof UpdateTagSchema>) => { const { id, ...updateData } = params; const tag = await put<N8nTag>(`/tags/${id}`, updateData); return { content: [{ type: 'text', text: `✅ Tag updated!\n\n${formatTag(tag)}` }], structuredContent: tag }; } );