n8n_create_tag
Create new tags in n8n to organize and categorize workflows for better management and filtering.
Instructions
Create a new tag
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Tag name |
Implementation Reference
- src/index.ts:260-266 (handler)The tool handler in src/index.ts that receives the request and delegates to the n8nClient.
case 'n8n_create_tag': { if (!args?.name) throw new Error('name is required'); const result = await n8nClient.createTag(args as any); return { content: [{ type: 'text', text: formatResponse(result) }], }; } - src/n8n-client.ts:188-191 (handler)The implementation of the 'createTag' method in the N8nClient class.
async createTag(data: { name: string }): Promise<any> { const response = await this.client.post('/tags', data); return response.data; } - src/index.ts:716-726 (registration)Tool registration in src/index.ts, defining the schema and name.
{ name: 'n8n_create_tag', description: 'Create a new tag', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Tag name' }, }, required: ['name'], }, },