n8n_get_tag
Retrieve tag details including ID and name from n8n workflow automation platform by providing the tag identifier.
Instructions
Get details of a specific tag.
Args:
id (string): Tag ID
Returns: Tag details with id and name.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The unique identifier of the resource |
Implementation Reference
- src/tools/tags.ts:67-94 (handler)The 'n8n_get_tag' tool registration and handler implementation in 'src/tools/tags.ts'. It uses the 'IdParamSchema' to validate input and calls the 'get' service to retrieve tag details from n8n.
server.registerTool( 'n8n_get_tag', { title: 'Get n8n Tag', description: `Get details of a specific tag. Args: - id (string): Tag ID Returns: Tag details with id and name.`, inputSchema: IdParamSchema, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } }, async (params: z.infer<typeof IdParamSchema>) => { const tag = await get<N8nTag>(`/tags/${params.id}`); return { content: [{ type: 'text', text: formatTag(tag) }], structuredContent: tag }; } );