n8n_update_tag
Modify tag names in n8n workflows to maintain organization and reflect changes in your automation processes.
Instructions
Update a tag
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Tag ID | |
| name | Yes | New tag name |
Implementation Reference
- src/n8n-client.ts:198-200 (handler)The actual implementation of the updateTag method in the n8nClient class.
async updateTag(id: string, data: { name: string }): Promise<any> { const response = await this.client.put(`/tags/${id}`, data); return response.data; - src/index.ts:276-282 (handler)The request handler for 'n8n_update_tag' which calls the n8nClient.updateTag method.
case 'n8n_update_tag': { if (!args?.id || !args?.name) throw new Error('id and name are required'); const result = await n8nClient.updateTag(args.id as string, { name: args.name as string }); return { content: [{ type: 'text', text: formatResponse(result) }], }; } - src/index.ts:738-749 (schema)The tool registration and schema definition for 'n8n_update_tag'.
{ name: 'n8n_update_tag', description: 'Update a tag', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Tag ID' }, name: { type: 'string', description: 'New tag name' }, }, required: ['id', 'name'], }, },