n8n_transfer_workflow
Transfer a workflow from one n8n project to another using workflow ID and target project ID.
Instructions
Transfer a workflow to another project
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Workflow ID | |
| destinationProjectId | Yes | Target project ID |
Implementation Reference
- src/n8n-client.ts:86-91 (handler)The API client method that performs the transfer workflow operation.
async transferWorkflow(id: string, destinationProjectId: string): Promise<any> { const response = await this.client.put(`/workflows/${id}/transfer`, { destinationProjectId }); return response.data; } - src/index.ts:115-123 (handler)The tool handler in index.ts that calls the client method for 'n8n_transfer_workflow'.
case 'n8n_transfer_workflow': { if (!args?.id || !args?.destinationProjectId) { throw new Error('id and destinationProjectId are required'); } const result = await n8nClient.transferWorkflow(args.id as string, args.destinationProjectId as string); return { content: [{ type: 'text', text: formatResponse(result) }], }; } - src/index.ts:530-540 (schema)The tool schema definition for 'n8n_transfer_workflow'.
{ name: 'n8n_transfer_workflow', description: 'Transfer a workflow to another project', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Workflow ID' }, destinationProjectId: { type: 'string', description: 'Target project ID' }, }, required: ['id', 'destinationProjectId'], },