n8n_transfer_workflow
Move a workflow from one project to another within n8n automation platform. Specify workflow ID and target project ID to complete the transfer.
Instructions
Transfer a workflow to a different project.
Args:
workflowId (string): Workflow ID to transfer
destinationProjectId (string): Target project ID
Returns: Confirmation of transfer.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflowId | Yes | Workflow ID to transfer | |
| destinationProjectId | Yes | Target project ID |
Implementation Reference
- src/tools/projects.ts:217-226 (handler)The asynchronous handler function that performs the PUT request to transfer the workflow to the specified project.
async (params: { workflowId: string; destinationProjectId: string }) => { await put(`/workflows/${params.workflowId}/transfer`, { destinationProjectId: params.destinationProjectId }); return { content: [{ type: 'text', text: `✅ Workflow transferred to project ${params.destinationProjectId}` }], structuredContent: { transferred: true, workflowId: params.workflowId, projectId: params.destinationProjectId } }; } - src/tools/projects.ts:194-216 (registration)The registration of the 'n8n_transfer_workflow' tool with its title, description, and input schema.
server.registerTool( 'n8n_transfer_workflow', { title: 'Transfer Workflow to Project', description: `Transfer a workflow to a different project. Args: - workflowId (string): Workflow ID to transfer - destinationProjectId (string): Target project ID Returns: Confirmation of transfer.`, inputSchema: z.object({ workflowId: z.string().min(1).describe('Workflow ID to transfer'), destinationProjectId: z.string().min(1).describe('Target project ID') }).strict(), annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: false } }, - src/tools/projects.ts:206-210 (schema)The Zod schema definition for the 'n8n_transfer_workflow' input parameters, including workflowId and destinationProjectId.
inputSchema: z.object({ workflowId: z.string().min(1).describe('Workflow ID to transfer'), destinationProjectId: z.string().min(1).describe('Target project ID') }).strict(), annotations: {